table_stats {carpenter}R Documentation

Common summary statistics to use in add_rows().

Description

Common summary statistics to use in add_rows().

Usage

stat_median(x, digits = 1)

stat_iqr(x, digits = 1)

stat_medianIQR(x, digits = 1)

stat_mean(x, digits = 1)

stat_stddev(x, digits = 1)

stat_meanSD(x, digits = 1)

stat_nPct(x, digits = 0)

Arguments

x

Numeric vector to use to calculate the statistic

digits

Number of digits to use

Value

Create a single character string with the summary statistic

See Also

carpenter() for a list of all functions, examples, and accessing the introduction tutorial vignette.


[Package carpenter version 0.2.2 Index]