R/round_num.R

Defines functions round_num

Documented in round_num

#' round_num
#'
#' @param x
#' @param accuracy
#' @param roundto
#'
#' @return
#' @export
#'
#' @examples

round_num <- function(thisnumber, accuracy, f=round){

  newthisnumber= f(thisnumber/ accuracy) * accuracy
  return (newthisnumber)
  }
hmorzaria/pssalmonsurvival documentation built on Aug. 20, 2023, 12:27 a.m.