[R] How does one do simple string concatenation?

Ajay Shah ajayshah at mayin.org
Mon Mar 17 11:56:17 CET 2008


How does one convert objects c("a","b","c") and "d" into "abcd"?

   > paste(c("a","b","c"), "d")
of course yields
   [1] "a d" "b d" "c d"

-- 
Ajay Shah                                      http://www.mayin.org/ajayshah  
ajayshah at mayin.org                             http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.



More information about the R-help mailing list