R/makeRoundUp.R

Defines functions makeRoundUp

Documented in makeRoundUp

#' Round up the provided integer vector \code{int} according to the
#' \code{modulus}.
## Copyright(c) 2017-2020 R. Mark Sharp
## This file is part of nprcgenekeepr
#'
#' @param int integer vector
#' @param modulus integer value to use as the divisor.
makeRoundUp <- function(int, modulus) {
  int + modulus - int %% modulus
}
rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.