View source: R/formatting_functions.R
format_fraction | R Documentation |
Formats a fraction together with ratio in percent.
format_fraction(x, ...)
x |
(named |
... |
not used. Required for |
A string in the format num / denom (ratio %)
. If num
is 0, the format is num / denom
.
Other formatting functions:
extreme_format
,
format_auto()
,
format_count_fraction()
,
format_count_fraction_fixed_dp()
,
format_count_fraction_lt10()
,
format_extreme_values()
,
format_extreme_values_ci()
,
format_fraction_fixed_dp()
,
format_fraction_threshold()
,
format_sigfig()
,
format_xx()
,
formatting_functions
format_fraction(x = c(num = 2L, denom = 3L))
format_fraction(x = c(num = 0L, denom = 3L))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.