Learn R Programming

translateSPSS2R (version 1.0.0)

computeMod: Returns the remainder of a division.

Description

Helper Function for xpssCompute. R Implementation of the SPSS MOD Function.

Usage

computeMod(x,modulus = NULL)

Arguments

x
an atomic numeric or numeric vector or numeric matrix.
modulus
atomic numeric x is divided by.

Value

returns a numeric vector including the remainder of x by modulus.

See Also

%%

Examples

Run this code
xpssCompute(x = fromXPSS, variables = "V5",fun = "computeMod", modulus = 2)

Run the code above in your browser using DataLab