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: [email protected]
______________________________________________
[email protected] 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.