[R] probably simple paste question

Erin Hodgess erinm.hodgess at gmail.com
Fri May 29 19:39:15 CEST 2009


Dear R People:

I have the following vector and am using the paste command:

> ya
[1] 57  2  8
> paste("stuff",ya,sep=" ")
[1] "stuff 57" "stuff 2"  "stuff 8"

What I want to have is
"stuff 57 2 8"


I also tried:
> yb <- paste(cat("stuff",ya))
stuff 57 2 8> yb
character(0)

I have the feeling that it's really simple and right in front of me.

Thanks,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com




More information about the R-help mailing list