roundup: Round up to the nearest specified interval

View source: R/numeric.R

roundupR Documentation

Round up to the nearest specified interval

Description

This function rounds UP to the nearest interval specified by "nearest" http://stackoverflow.com/questions/6461209/how-to-round-up-to-the-nearest-10-or-100-or-x

Usage

roundup(x, nearest = 1000)

Arguments

x

number

nearest

nearest interval, e.g., 5, 10, 100, 1000, etc.

Value

a number


chepec/R-common documentation built on July 27, 2023, 11:33 a.m.