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

2009-09-30 Thread Dr. Arie Ben David
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.


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

2009-09-30 Thread Tobias Verbeke

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

__
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.


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

2009-09-30 Thread Meyners, Michael, LAUSANNE, AppliedMathematics
?paste 

 -Original Message-
 From: r-help-boun...@r-project.org 
 [mailto:r-help-boun...@r-project.org] On Behalf Of Dr. Arie Ben David
 Sent: Mittwoch, 30. September 2009 10:22
 To: r-help@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@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.
 

__
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.


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

2009-09-30 Thread Tobias Verbeke

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

__
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.


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

2009-09-30 Thread Robert Kinley
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_aben...@bezeqint.net 
Sent by: r-help-boun...@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]]

__
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.