Erin Hodgess
2009-May-29 17:44 UTC
[R] probably simple paste question solved: please ignore
Nothing like posting your snag to make you solve it! The answer is simply:> c("stuff",ya)[1] "stuff" "57" "2" "8">Sorry, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com
Bert Gunter
2009-May-29 21:32 UTC
[R] probably simple paste question solved: please ignore
Actually, you still do not have what you originally specified: you have
produced a character vector of length 4 where your original post indicated
that you wanted a single character string seprating the four values by a
space. For this you want:
paste("stuff",paste(ya,collapse=" "), sep =" ")
-- Bert Gunter
Genentech Nonclinical Statistics
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On
Behalf Of Erin Hodgess
Sent: Friday, May 29, 2009 10:44 AM
To: R help
Subject: [R] probably simple paste question solved: please ignore
Nothing like posting your snag to make you solve it!
The answer is simply:> c("stuff",ya)
[1] "stuff" "57" "2"
"8">
Sorry,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
______________________________________________
R-help at r-project.org 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.