Dr. Arie Ben David
2009-Sep-30 08:22 UTC
[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]]
Meyners, Michael, LAUSANNE, AppliedMathematics
2009-Sep-30 11:08 UTC
[R] How do I do simple string concatenation in R?
?paste> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Dr. Arie Ben David > Sent: Mittwoch, 30. September 2009 10:22 > To: r-help at r-project.org > 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 at 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. >
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
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
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]]
Apparently Analagous Threads
- Samba 4.1.6-Ubuntu on 14.04 domain join seems successful with caveats, testjoin reports no logon servers...
- Samba 4.1.6-Ubuntu on 14.04 domain join seems successful with caveats, testjoin reports no logon servers...
- Samba 4.1.6-Ubuntu on 14.04 domain join seems successful with caveats, testjoin reports no logon servers...
- using "integrate" in a function definition
- dovecot quota-warning detection mail