Find convenient limits of input vectors
round_to.Rd
If accuracy is omitted, number will be rounded to the nearest order of magnitude IE 145, if fn = min
, will round to 100
Usage
round_to(
...,
accuracy = NULL,
fn = min,
f = if (identical(fn, min)) {
floor
} else {
ceiling
},
na.rm = TRUE
)
See also
Other rounding:
magnitude_order()
,
magnitude_triplet()
,
num2str()
,
num2str_vec()
,
num_chr_suffi
,
size()
,
unit_find()
,
unit_modify()
,
unit_modify_vec()
,
unit_string()