[R] Concatenate vector into string

Witold Eryk Wolski W.E.Wolski at ncl.ac.uk
Fri Mar 4 14:52:08 CET 2005


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

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


Eryk

-- 
Witold Eryk Wolski
__("<  School of Mathematics and Statistics     _
\__/   University of Newcastle                 'v'
 ||    Newcastle upon Tyne, NE1 7RU, ENGLAND  /   \
 ^^    mail: witek96 at users.sourceforge.net     m m
       Phone : 044 (0)191 222 5376
       FAX   : 044 (0)191 222 8020




More information about the R-help mailing list