Skip to content
Prev 201041 / 398502 Next

How to concatenate a vector of strings to a string?

On Nov 20, 2009, at 8:03 PM, Peng Yu wrote:

            
Remember that paste is vectorised. That behavior is desired:

 > paste('a','b',sep='')
[1] "ab"
 > paste(c('a','b'), c(1,2), sep='')
[1] "a1" "b2"




David Winsemius, MD
Heritage Laboratories
West Hartford, CT