R/mround.R

Defines functions mround

Documented in mround

#' Rounds numbers into categories by dec
#'
#' 
#' @param a number that you want to round to a dec (decimal)
#' @keywords rounding
#' @export
#' @examples
#' mround()


mround <- function(x,dec){ dec*round(x/dec) }
aurielfournier/rel documentation built on Jan. 9, 2020, 12:06 p.m.