compute_quant: Compute Means, SDs, and Sample Sizes

Description Usage Arguments Value

View source: R/compute_quant.R

Description

compute_stats is a function for computing the mean, SD, and N for a numeric variable. Designed to be passed as the quant_func argument to survey_table.

Usage

1
compute_quant(x, digits = 3, labels = NULL, ...)

Arguments

x

a numeric vector.

labels

a vector of character strings containing the labels for the statistics computed on x.

Value

a numeric vector containing the computed statistics.


Scott-Coggeshall/magictable documentation built on July 30, 2020, 2:19 a.m.