1+(0:16 %% 3)
is a "purely arithmetic" solution

Dimitris Rizopoulos wrote:
> probably you want to use the 'length' argument of rep(), e.g.,
> 
> rep(1:3, length = 17)
> 
> 
> I hope it helps.
> 
> Best,
> Dimitris

-- 
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39464 Fax: +43-1-4277-39459

______________________________________________
[email protected] 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