Szabolcs Horvát <szhorvat <at> gmail.com> writes:

> You could use the modulo operator.
> >
> > # additional examples of what I want
> > seq(from=2, length.out=4, rlimit=3)
> > [1] 2 3 1 2
> 
> seq(from=1, length.out=4) %% 3 + 1

Ah, that's so slick. You're off to a great start! Huge thanks to you and 
everyone else who responded.

______________________________________________
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