compute_stats: General Quantitative Function

Description Usage Arguments

View source: R/compute_quant.R

Description

compute_quant provides the most general and flexible way of specifying the quant_func argument to survey_table.

Usage

1
compute_stats(x, stat_func, stat_args, labels = NULL)

Arguments

x

a numeric vector

labels

a vector of character strings giving the labels for the elements of the output. Default is to use func_names.

func_names

a vector of character strings giving the names of the functions to be applied to x.

func_args

a list with number of elements equal to length(func_names). Each element of func_args should itself be a named list of arguments to be passed to the corresponding element of func_names. If the list consists of non-list elements, then it is assumed that this single list contains arguments that should be applied to all functions contained in func_names.


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