On Jan 19, 2010, at 11:17 PM, Ron_M wrote:


Hi all, I have a expression like that :

rep(2,4)
[1] 2 2 2 2

> paste(rep(2,4), sep="", collapse="")
[1] "2222"



Now I want to write it as "2222" through some automated way. Is there is function for doing that? I have tested with paste(), but count not get any
desired result.

Thanks,
--
View this message in context: 
http://n4.nabble.com/A-question-tp1018144p1018144.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@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.

Reply via email to