R/mround.R

Defines functions mround

Documented in mround

#' @title mround
#'
#' @description rounds to nearest X
#'
#' @param x
#' @param base
#'
#' @return NULL
#'
#' @examples mround(x,base)
#'
#' @export

mround <- function(x,base){
  base*round(x/base)
}
amazehayes/ffstatsfunctions documentation built on July 27, 2020, 10:53 p.m.