[R] string concatenation operator

Gabor Grothendieck ggrothendieck at myway.com
Thu Feb 24 21:27:07 CET 2005


Harris A. Jaffee <hjaffee <at> jhmi.edu> writes:
 
: Why doesn't R have one, like "." in Perl or juxtaposition in awk?

You could define one like this:

R> "%+%" <- function(x,y) paste(x,y,sep="")
R> "abc" %+% "def"
[1] "abcdef"




More information about the R-help mailing list