R/round_df.R

Defines functions round_df

Documented in round_df

#' round_df
#'
#' @return
#' @export
#'
#' @examples
round_df <- function(df, digits = 2) {
	#NullCheck::stopNull()
  mutate_if(df, is.numeric, round, digits=digits)
}

#' round.data.frame 
#'
#' @return
#' @export
#'
#' @examples
round.data.frame = round_df
itsaquestion/MyUtils documentation built on Aug. 25, 2019, 9:46 p.m.