Learn R Programming

daewr (version 1.1-8)

mod: Mod function

Description

Gets mod of a to base b

Usage

mod(a,b)

Arguments

a

input- an integer

b

input - an integer

Value

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

Examples

Run this code
# NOT RUN {
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