round2: round2

Description Usage Arguments Value References

View source: R/round2.R

Description

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

Usage

1
round2(x, n = 0)

Arguments

x

a numeric vector

n

integer indicating the number of decimal places

Value

a numeric vector with rounded numbers

References

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


dendroTools documentation built on Jan. 3, 2022, 5:09 p.m.