Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fmt_percent

Format numbers as percent


Description

Format numbers as percent

Usage

fmt_percent(digits = 1)

Arguments

digits

How many digits to print.

Value

An object you can pass into number_format().

See Also

Other format functions: fmt_pretty()

Examples

jams$Sugar <-c ("Sugar content",
      0.4, 0.35, 0.45)
set_number_format(jams, -1, "Sugar",
      fmt_percent(1))

huxtable

Easily Create and Style Tables for LaTeX, HTML and Other Formats

v5.3.0
MIT + file LICENSE
Authors
David Hugh-Jones [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.