round2: round2

Description Usage Arguments Value References

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


jernejjevsenak/dendroTools documentation built on June 5, 2019, 4:06 a.m.