[R] Mod function?

Charles C. Berry cberry at tajo.ucsd.edu
Sat Jun 10 17:23:51 CEST 2006


John,

The advice in the posting guide:

--
Do your homework before posting: [...]

     * Do help.search("keyword") with different keywords (type this at the R prompt) 
--

seems to work.

Using

 	help.search("mod")

follow the first hit:

 	?"+"

Chuck

On Fri, 9 Jun 2006, Kerpel, John wrote:

> 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!
>
>
>
> Best,
>
>
>
> john
>
>
> 	[[alternative HTML version deleted]]
>
>
>
>
>    [ Part 3.30: "Included Message" ]
>

Charles C. Berry                        (858) 534-2098
                                          Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	         UC San Diego
http://biostat.ucsd.edu/~cberry/         La Jolla, San Diego 92093-0717



More information about the R-help mailing list