round_any_v: Vectorized Function for Rounding to a Multiple of any Number

Description Usage Arguments Value Examples

Description

Vectorized version of plyr::round_any, which is a function that rounds to multiple of any number.

Usage

1
round_any_v(x, accuracy, f = round)

Arguments

x

vector of numbers to round

accuracy

vector of multiples to round the vector x

Value

vector with x rounded to the nearest accuracy

Examples

1
round_any_v(c(52,199,14),10)

Tsunamical28/mdpr documentation built on May 9, 2019, 5:15 p.m.