mod | R Documentation |
Provides modulus and remainder after division.
mod(x, y) rem(x, y)
x, y |
numeric vectors or objects |
Returns vector containing result of the element by element operations.
P. Roebuck proebuck1701@gmail.com
## same results with x, y having the same sign mod(5, 3) rem(5, 3) ## same results with x, y having different signs mod(-5, 3) rem(-5, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.