[R] generating a sequence

KAREN KOTSCHY karen at gecko.biol.wits.ac.za
Tue Dec 21 14:20:55 CET 1999


Hi everyone

I'm trying to generate a vector of the form
a <- c(1,2,3,4,1,2,3,1,2,1) where n = 5
in a general way, where n can be any positive integer.

I've run out of ideas. Does anyone have any suggestions?

Thanks
Karen
Karen Kotschy
Centre for Water in the Environment
University of the Witwatersrand
Johannesburg

Tel: 011 716-2218
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list