Am 03.12.2008 um 09:06 schrieb Liviu Andronic:
Dear all,
I'm looking for an alternative way to replicate the "2," string for an
x number of times, and end up with one string containing "2," x times.
I can partly achieve this using replicate().
y <- rep("2,", times=3)
y
JFTR: replicate() is a different function from rep(). See ?rep and
?replicate.
______________________________________________
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.