R/roundTO.R

Defines functions roundTO

#' Round 2 Function
#'
#' Rounding function renamed 'roundTO' to prevent homonyms
#'
#' @param x Numeric value to be rounded.
#' @param y Numeric value to round \code{x} to nearest multiple of.
#'
#' @returns Numeric value.
#' @noRd

roundTO <- function(x,y){
  #roundTO rounds number to nearest multiple of arbitrary precision.
  round(x/y)*y
}

Try the EWSmethods package in your browser

Any scripts or data that you put into this service are public.

EWSmethods documentation built on May 29, 2024, 5:41 a.m.