see ?paste


> A <-"klm"
> B <- "jjj"
> C<-paste(A,B,sep='')
> if(C=="klmjjj") print(C) 
[1] "klmjjj"

        cheers          Bob




"Dr. Arie Ben David" <hol_abendav@bezeqint.net> 
Sent by: r-help-bounces@r-project.org
30/09/2009 09:22

To
<r-help@r-project.org>
cc

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





Dear R gurus
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?
Thank you
Arie

[[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


	[[alternative HTML version deleted]]


