Learn R Programming

daewr (version 1.2-7)

mod: Mod function

Description

Gets mod of a to base b

Usage

mod(a,b)

Value

remainder of a/b or mod(a,b)

Arguments

a

input- an integer

b

input - an integer

Author

John Lawson

Examples

Run this code
mod(5,3)
## The function is currently defined as
mod<-function(a,b)
{a-b*floor(a/b)}

     

Run the code above in your browser using DataLab