computeRnd: Rounds values.

Description

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

Usage

1
computeRnd(x, digits=2)

Arguments

x

a numeric or complex vector.

digits

atomic numeric argument, indicating the number of decimal places.

Value

returns the rounded values of x with the specified number of decimal places.

Author(s)

Bastian Wiessner

See Also

round

Examples

1
2
3
xpssCompute(x = fromXPSS, variables = "V5",fun = "computeRnd")

xpssCompute(x = fromXPSS, variables = "V5",fun = "computeRnd",digits=1)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.