RE: [R] Concatenate vector into string

From: Bashir Saghir (Aztek Global) <Saghir.Bashir_at_ucb-group.com>
Date: Fri 04 Mar 2005 - 23:42:48 EST


Try:

paste(c("a","b","c"), collapse="")

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Matthieu Cornec Sent: Friday, March 04, 2005 12:32
To: R-help@lists.R-project.org
Subject: [R] Concatenate vector into string

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

Legal Notice: This electronic mail and its attachments are i...{{dropped}}

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:13:14 2005

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