#' format_qty
#'
#' Shortcut for `format_SI(..., fixed = TRUE, engineering = TRUE)`.
#'
#' @usage format_qty(...)
#'
#' @export
format_qty <- function (
x,
digits = NULL,
fixed = TRUE,
engineering = TRUE,
...,
verbose = getOption("verbose")
) {
if (isFALSE(is.null(digits))) {
engineering <- FALSE
}
formatted <-
format_SI(
x,
digits = digits,
fixed = fixed,
engineering = engineering,
...,
verbose = verbose)
return(formatted)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.