RE: [R] Concatenate vector into string

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Sat 05 Mar 2005 - 00:31:53 EST


See ?paste, e.g.,

> char <- c("a", "b", "c")
> paste(char, collapse="")

[1] "abc"

Andy

> From: Matthieu Cornec
>
> 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 03:08:50 2005

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