[R] Mod function?

From: Kerpel, John <John.Kerpel_at_infores.com>
Date: Sat 10 Jun 2006 - 00:40:58 EST

Hi Folks!  

I need to execute a piece of R code inside a loop, say, every fourth time my counter increases (it increases by 1 unit each time.)  

Is there any sort of mod function in R to do this? Or is this done some other way? Many thanks!  



        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jun 10 01:05:53 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 11 Jun 2006 - 05:34:53 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.