In R what is the equivalent of "mod" function handle in Matlab?

SaZa

How i can Find mod of two numbers in r? I know in MATLAB we can use "mod" but I am not sure about r. I searched the help and couldn't find mod function in r.

lejlot

There is a %% operator

> 5 %% 1
[1] 0    
> 5 %% 2
[1] 1
> 5 %% 3
[1] 2
> 5 %% 4
[1] 1                                             
> 5 %% 5
[1] 0
> 5 %% 6
[1] 5                  

You can use ?'%%' to get its detailed description

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Mod() function in R equivalent for MatLab?

From Dev

Equivalent R function for Matlab

From Dev

Equivalent R function for Matlab

From Dev

R equivalent of the Matlab spy function

From Dev

what is the equivalent function of matlab 'fix' in opencv?

From Dev

What is the MATLAB equivalent of Excel's NORMSDIST function?

From Dev

What is the MATLAB equivalent of Excel's NORMSDIST function?

From Dev

What is the R equivalent of matlab's csaps()

From Dev

Equivalent of R language function 'is.na' in MATLAB

From Dev

What is equivalent function of excel "fdist" function in R?

From Dev

What is the equivalent of the LEFT plus FIND function in R?

From Dev

What is the equivalent of MATLAB?

From Dev

What is the equivalent of matlab's smooth3 function in python?

From Dev

R equivalent of Matlab trisurf()

From Dev

matlab expression Equivalent in R

From Dev

Using a Function handle in Matlab

From Dev

Matlab nested function handle

From Dev

MATLAB: Function Handle of Nested Function

From Dev

MATLAB: Function Handle of Nested Function

From Dev

What is the equivalent to a Matlab cell array?

From Dev

What is the equivalent function in openpyxl?

From Dev

The equivalent function of Matlab imfilter in Python

From Dev

Fortran equivalent of the MATLAB meshgrid function?

From Dev

Matlab importdata() function equivalent in Python

From Dev

Equivalent matlab damp function for Python

From Dev

Matlab gamfit equivalent function in boost

From Dev

Python equivalent of MATLAB function findchangepts

From Dev

R equivalent of a matlab "cell matrix"

From Dev

Matlab bsxfun(@times,...,...) equivalent in R