R/round_by_two.R

Defines functions round_by_2

Documented in round_by_2

#' round values by 10
#' 
#' @keywords round numeric values by 10
#' @export
#' @examples 
#' >round_by_10(17)
#' >20

round_by_2 <- function(x) ceiling(x/2)*2
aurielfournier/rel documentation built on Jan. 9, 2020, 12:06 p.m.