R/round_values.R

Defines functions round_values

Documented in round_values

#' Rounding Strategy
#'
#' @param df dataframe
#'
#' @export

round_values <- function(df){

  df <- dplyr::mutate_if(df, is.numeric,
                         ~ ifelse(Age %in% peds_o01, ceiling(.), round(., 0)))

  return(df)
}
achafetz/adjuST documentation built on May 21, 2019, 11:29 a.m.