cs_sum: Summarize Joint Distribution from 'cs_dist()'

View source: R/summarize.R

cs_sumR Documentation

Summarize Joint Distribution from cs_dist()

Description

cs_sum() calculates the proportion of the organization that falls within the specified group. Variables are joined with &; not specifiying a variable (or setting it to NULL) includes all of its values.

Usage

cs_sum(dt, vac = NULL, inf = NULL, symp = NULL, test = NULL, detect = NULL)

Arguments

dt

[data.table] A distribution from cs_dist()

vac, inf, symp, test, detect

[logical(1)] Variables values specifying which sub-group to sum over. If NULL, will sum over all values.

Value

[double(1)] The proportion of the organization with all the specified characteristics


jesse-smith/covidscreen documentation built on June 15, 2022, 7:46 p.m.