spss_round: A round function that prroximates the way SPSS calculates...

Description Usage Arguments Value Examples

View source: R/spss_round.R

Description

A round function that prroximates the way SPSS calculates round (always rounds 0.5*n up)

Usage

1
spss_round(x, n = 0)

Arguments

x

The vector to round

n

digit number before floating point

Value

A vector of rounded values

Examples

1
2
spss_round(c(0.50,0.49,1.5),0)
round(c(0.50,0.49,1.5),0)

sarid-ins/saridr documentation built on Nov. 10, 2020, 9:07 p.m.