[R] How to concatenate a vector of strings to a string?
jim holtman
jholtman at gmail.com
Sat Nov 21 02:11:11 CET 2009
?paste
Read the help file, esp the collapse parameter. Might help to reread
Intro to R.
On Fri, Nov 20, 2009 at 8:03 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>> paste(c('a','b'),sep='')
> [1] "a" "b"
>
> The above command doesn't concatenate the strings in a single string.
> I'm wondering what is the correct way to do so.
>
> ______________________________________________
> R-help at 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.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help
mailing list