[R] paste - eliminate spaces?
r user
ruser2006 at yahoo.com
Wed Jan 25 20:00:17 CET 2006
I found the answer:
add sep="" to the paste command
paste('test',1,sep="")
--- r user <ruser2006 at yahoo.com> wrote:
> I am trying to combine the value of a variable and
> text.
>
> e.g.
> I want test1, with no spaces.
>
> I try:
>
> h=1
> paste(test,1)
>
> But get:
> [1] "test 1"
>
> (i.e. there is a space between test and 1)
>
> Is there a way to eliminate the space?
>
>
> __________________________________________________
> Do You Yahoo!?
> protection around
> http://mail.yahoo.com
>
More information about the R-help
mailing list