roundX: special rounding

View source: R/roundX.R

roundXR Documentation

special rounding

Description

special rounding

Usage

roundX(x, roundto = 0)

Arguments

x

numeric vector

roundto

numeric of length 1, round to nearest ...

Value

numeric vector of the same length as x

Examples

x <- runif(20, 0, 1)
plot(roundX(x, 0.2), x)

x <- rnorm(100, 0, 1)
plot(roundX(x, 0.5), x)


gobbios/cfp documentation built on April 11, 2022, 2:22 a.m.