[R] strange algorithm needed

Erich Neuwirth erich.neuwirth at univie.ac.at
Wed Nov 1 23:48:01 CET 2006


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



More information about the R-help mailing list