[R] a sequence that wraps around

Jack Tanner ihok at hotmail.com
Wed Sep 16 17:40:55 CEST 2009


Henrique Dallazuanna <wwwhsd <at> gmail.com> writes:

> Try rep:
> 
> rep(2:4, length.out = 3, times = 10)

That's close, but it doesn't wrap to start at 1.




More information about the R-help mailing list