powered by
Format numbers as percent
fmt_percent(digits = 1)
How many digits to print.
An object you can pass into number_format().
number_format()
Other format functions: fmt_pretty()
fmt_pretty()
# NOT RUN { jams$Sugar <-c ("Sugar content", 0.4, 0.35, 0.45) set_number_format(jams, -1, "Sugar", fmt_percent(1)) # }
Run the code above in your browser using DataLab