Re: [R] Concatenate vector into string

From: Adaikalavan Ramasamy <ramasamy_at_cancer.org.uk>
Date: Fri 04 Mar 2005 - 23:53:31 EST

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@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
>



R-help@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 Received on Sat Mar 05 02:30:07 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:40 EST