A formatting string suitable for input into the
sprintf function. By default, this format is
defined as "%.1f", which displays the value with one decimal place.
Details
This function calculates a median using the stats package
median
function, and then formats the output using sprintf.
You may control the format using the format parameter. Function will
ignore any NA values in the input data. Results are returned as a
character vector.
See Also
Other helpers:
fmt_cnt_pct(),
fmt_mean_sd(),
fmt_n(),
fmt_quantile_range(),
fmt_range()