Thank you for your reply. But in the following case, “cat()” or “print()” doesn’t work.
data.frame(cbind(variable 1, variable 2, cat(paste("variable", x), "\n"))), where x is a random number generated by other R script. Lisa Duncan Murdoch wrote: > > On 29/12/2009 1:16 PM, Lisa wrote: >> Dear All, >> >> I am not sure how to remove double quotation marks in a string, e.g., >> paste("variable", 1). Can anybody please help me solve it? Thank you in >> advance. > > I think you need to tell us what is wrong with what you get from that. > When I look at the result: > > > cat(paste("variable", 1), "\n") > variable 1 > > I see no quotation marks. (If you use print() you'll see some, but they > aren't part of the string, they are just used in the default display by > print().) > > Duncan Murdoch > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://n4.nabble.com/Remove-double-quotation-marks-tp990502p990516.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.