powered by
Output the means for groups in one or multiple columns
tab_metrics_items_grouped( data, cols, cross, digits = 1, values = c("m", "sd"), labels = TRUE, clean = TRUE, ... )
A volker tibble.
A tibble.
The item columns that hold the values to summarize.
The column holding groups to compare.
The number of digits to print.
The output metrics, mean (m), the standard deviation (sd) or both (the default).
If TRUE (default) extracts labels from the attributes, see codebook.
Prepare data by data_clean.
Placeholder to allow calling the method with unused parameters from tab_metrics.
library(volker) data <- volker::chatgpt tab_metrics_items_grouped(data, starts_with("cg_adoption_"), sd_gender)
Run the code above in your browser using DataLab