[R] paste - eliminate spaces?
phgrosjean at sciviews.org
Wed Jan 25 20:02:47 CET 2006
Just read more carefully the online help for paste (?paste).
sep: a character string to separate the terms.
and the default value for sep is " " (a space).
So, just use:
> paste("test", 1, sep = "")
r user wrote:
> I am trying to combine the value of a variable and
> I want “test1”, with no spaces.
> I try:
> But get:
>  "test 1"
> (i.e. there is a space between “test’“ and “1”)
> Is there a way to eliminate the space?
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help