fmt_mean_stderr: Formatted mean and standard error
Description
A function to calculate and format a mean and standard error.
Usage
fmt_mean_stderr(x, format = "%.1f", stderr_format = NULL)
Value
The formatted mean and standard error.
Arguments
x
The input data vector or data frame column.
format
A formatting string suitable for input into the
sprintf function. By default, this format is
defined as "%.1f", which displays the mean and standard error with
one decimal place.
stderr_format
An optional format for the standard error. If this
parameter is not supplied, the standard error will be formatted
the same as the mean, according to the `format` parameter.
Details
This function calculates a mean and standard error, and formats using
sprintf.
You may control the format using the format parameter.
Function will ignore NA values in the input data. Results are
returned as a character vector.
See Also
Other helpers:
fmt_cnt_pct(),
fmt_mean_sd(),
fmt_median(),
fmt_n(),
fmt_quantile_range(),
fmt_range()