Nothing
#' Format percentages
#'
#' A recreation of the \code{stats:::format.prec} function that is only available internally to the \code{stats} package.
#' @param probs A vector of probabilities.
#' @inheritParams base::format
#'
#' @return A vector of percentages
#' @export
#' @keywords internal
#' @seealso \code{\link[base]{format}}
#' @examples
#' format_perc_api2lm(c(0.523423, 0.9098192, 0.951289), digits = 1)
#' format_perc_api2lm(c(0.523423, 0.9098192, 0.951289), digits = 3)
format_perc_api2lm <- function (probs, digits) {
paste(format(100 * probs, trim = TRUE, scientific = FALSE, digits = digits),
"%")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.