R/roundup.R

Defines functions roundup

Documented in roundup

#' @title roundup
#' @description Rounds up a number to the specified base.
#' @param x Input number.
#' @param base The base number
#' @author Will Gittens
#' @export
roundup <- function(x,base){
  base*ceiling(x/base)
}
WHG1990/CCTools documentation built on June 16, 2024, 1:36 a.m.