Format fraction and percentage with fixed single decimal place
Source:R/formatting_functions.R
format_fraction_fixed_dp.Rd
Formats a fraction together with ratio in percent with fixed single decimal place. Includes trailing zero in case of whole number percentages to always keep one decimal place.
Arguments
- x
(named
integer
)
vector with elementsnum
anddenom
.- ...
not used. Required for
rtables
interface.
See also
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()
,
format_fraction_threshold()
,
format_sigfig()
,
format_xx()
,
formatting_functions