[R] Concatenate vector into string

Tim Cutts tjrc at sanger.ac.uk
Fri Mar 4 15:10:09 CET 2005


On 4 Mar 2005, at 11:32 am, Matthieu Cornec wrote:

> Hello,
>
> I would like to convert c("a","b","c") into "abc".
> Anyone could help?

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

Tim

-- 
Dr Tim Cutts
Informatics Systems Group, Wellcome Trust Sanger Institute
GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5  860B 3CDD 3F56 E313 4233




More information about the R-help mailing list