round2: round2

View source: R/round2.R

round2R Documentation

round2

Description

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

Usage

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 July 26, 2023, 5:12 p.m.