Learn R Programming

dendroTools (version 1.2.14)

round2: round2

Description

Rounding function, where numbers are rounded up, 0.5 = 1

Usage

round2(x, n = 0)

Value

a numeric vector with rounded numbers

Arguments

x

a numeric vector

n

integer indicating the number of decimal places

References

http://alandgraf.blogspot.com/2012/06/rounding-in-r.html