Formatting function for absolute and relative frequencies
format_freqs(
numerator,
denominator = 1,
absolute_relative_frequency_mode = c("both", "only_absolute", "only_relative"),
percent_accuracy = NULL,
percent_suffix = "%"
)
string of formatted frequencies
(numeric) numerator for % calculations
(numeric) denominator for % calculations
one of c("both", "only_absolute", "only_relative")
.
"both" will print "Absolute Freq. (Relative Freq. %)", the other options work accordingly.
NULL or numeric. Refer to the accuracy
argument in
percent
.
usually "%" or "". Refer to the suffix
argument in
percent
.