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

Tobias Verbeke tobias.verbeke at gmail.com
Wed Sep 30 13:11:57 CEST 2009


Tobias Verbeke wrote:
> 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 = "")

Oops.

paste(A, B, sep = "")

Best,
Tobias




More information about the R-help mailing list