John Sorkin wrote:
Windows XP
R 2.8.1

Is there any way to make a list of the from
 1,1,1,2,2,2,3,3,3,4,4,4, . . ., n,n,n?

rep(1:n, each=3)

Greetings,
Christian

______________________________________________
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