R/format_big.R

Defines functions format_big

Documented in format_big

#' Format big numbers
#'
#' A wrapper around \code{format()}.
#'
#' @param x The number to format.
#'
#' @return \code{x}, formatted with a comma for the big mark. Scientific
#'   notation is disabled.
#' @export
#'
format_big <- function(x) {
  format(
    x = x,
    big.mark = ",",
    scientific = FALSE
  )
}
bjoleary/dxr documentation built on Dec. 5, 2023, 8:33 p.m.