computeRnd: Rounds values.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/xpssComputeArithmetics.R

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)

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

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