Learn R Programming

translateSPSS2R (version 1.0.0)

computeAbs: Computes the absolute value.

Description

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

Usage

computeAbs(x)

Arguments

x
an atomic numeric or numeric vector or numeric matrix.

Value

Returns a vector with the absolute values of the input data.

See Also

abs

Examples

Run this code
data(fromXPSS)
xpssCompute(x = fromXPSS, variables = "V5",fun = "computeAbs")

Run the code above in your browser using DataLab