sround: Simple Round

Description Usage Arguments Value See Also Examples

View source: R/sround.R

Description

sround returns the row-wise average of a series of vectors. The n argument indicates the minimimum number of items a particpant should have responded to in order to be given an average.

Usage

1
sround(x, n = 0)

Arguments

x

A numeric vector to be rounded

n

Number of decimals to round to (default is to integer)

Value

A vector of type numeric.

See Also

scoring

Examples

1
2
3
4
5
6
7
8
## Not run: 
x <- seq(from = 1, to = 5, by = .25)
round(x)
sround(x)
round(x, 1)
sround(x, 1)

## End(Not run)

mattsigal/mmisc documentation built on May 21, 2019, 1:26 p.m.