brand_summarize_attributes() counts raw attribute responses by brand and
attribute for one stored attribute set.
Usage
brand_summarize_attributes(
brand,
set_name = "default",
value_cols = NULL,
which = c("sample", "sum", "mean", "sd"),
cohort = NULL
)Arguments
- brand
A
g6tr_brandobject created withbrand_create().- set_name
Name of the attribute set to summarize. Defaults to
"default".- value_cols
Optional character vector of numeric columns to summarize.
- which
Character vector selecting which numeric summaries to keep. Supported values are
"sample","sum","mean", and"sd".- cohort
Optional cohort or cohort set. When supplied, summaries are restricted to those IDs and use
brand$data$weight * cohort$weight.