powered by
Formats a count together with fraction with special consideration when count is less than 10.
format_count_fraction_lt10(x, ...)
A string in the format count (fraction %). If count is less than 10, only count is printed.
count (fraction %)
count
(numeric(2)) vector of length 2 with count and fraction, respectively.
numeric(2)
not used. Required for rtables interface.
rtables
Other formatting functions: extreme_format, format_auto(), format_count_fraction(), format_count_fraction_fixed_dp(), format_extreme_values(), format_extreme_values_ci(), format_fraction(), format_fraction_fixed_dp(), format_fraction_threshold(), format_sigfig(), format_xx(), formatting_functions
extreme_format
format_auto()
format_count_fraction()
format_count_fraction_fixed_dp()
format_extreme_values()
format_extreme_values_ci()
format_fraction()
format_fraction_fixed_dp()
format_fraction_threshold()
format_sigfig()
format_xx()
formatting_functions
format_count_fraction_lt10(x = c(275, 0.9673)) format_count_fraction_lt10(x = c(2, 0.6667)) format_count_fraction_lt10(x = c(9, 1))
Run the code above in your browser using DataLab