Rounds values.

Share:

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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.