[R] Concatenate vector into string

Adaikalavan Ramasamy ramasamy at cancer.org.uk
Fri Mar 4 13:53:31 CET 2005


Use the collapse argument in paste.

paste( c("a", "b", "c"), collapse="" )
[1] "abc"



On Fri, 2005-03-04 at 03:32 -0800, Matthieu Cornec wrote:
> Hello,
> 
> I would like to convert c("a","b","c") into "abc".
> Anyone could help?
> Thanks,
> 
> Matthieu Cornec
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list