computeRnd: Rounds values.

Description Usage Arguments Value Author(s) See Also Examples

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)


Search within the translateSPSS2R package
Search all R packages, documentation and source code

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

Please suggest features or report bugs with the GitHub issue tracker.

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