mround: round a number to nearest given integer

Description Usage Arguments Value Examples

View source: R/utils.R

Description

round a number to nearest given integer

Usage

1
mround(x, base = 10)

Arguments

x

numeric value, can be a vector.

base

integer to round to. Default = 10

Value

x rounded to nearest base.

Examples

1
2
mround(11.32)
mround(seq(1,10,by=0.5),2)

mqueinnec/RMFinventory documentation built on May 4, 2021, 10:45 a.m.