computeMod: Returns the remainder of a division.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeArithmetics.R

Description

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

Usage

1
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.

Author(s)

Bastian Wiessner

See Also

%%

Examples

1
xpssCompute(x = fromXPSS, variables = "V5",fun = "computeMod", modulus = 2)

Example output

      V5
1  1.380
2  1.231
3  0.536
4  1.126
5  0.696
6  1.854
7  1.061
8  0.767
9  0.620
10 0.902
11 0.072
12 1.238
13 1.526
14 0.954
15 0.094
16 0.574
17 0.158
18 0.361
19 1.269
20 1.835

translateSPSS2R documentation built on May 30, 2017, 4:31 a.m.