R/utils-format-round.R

Defines functions format_round

Documented in format_round

#' Format digits (internal use only)
#'
#' @param x object
#' @param digits number of digits to round to
#' @keywords internal
#' @return a rounded string
format_round <- function(x, digits = 3) {
  format(round(x, digits = digits), nsmall = digits, scientific = FALSE)
}

Try the psycModel package in your browser

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

psycModel documentation built on Nov. 2, 2023, 6:02 p.m.