[R] How do I do simple string concatenation in R?

Tobias Verbeke tobias.verbeke at gmail.com
Wed Sep 30 13:09:48 CEST 2009


Hi Ari,

> How do I do simple string concatenation in R? 
> For example:
> A = "klm"
> B = "jjj"
> How can I assign a value to C such that C == "klmjjj" is True?

paste(A, B, collapse = "")

See ?paste

HTH,
Tobias




More information about the R-help mailing list