tab_metrics_items_grouped {volker} | R Documentation |
Output the means for groups in one or multiple columns
Description
Output the means for groups in one or multiple columns
Usage
tab_metrics_items_grouped(
data,
cols,
cross,
digits = 1,
values = c("m", "sd"),
labels = TRUE,
clean = TRUE,
...
)
Arguments
data |
A tibble. |
cols |
The item columns that hold the values to summarize. |
cross |
The column holding groups to compare. |
digits |
The number of digits to print. |
values |
The output metrics, mean (m), the standard deviation (sd) or both (the default). |
labels |
If TRUE (default) extracts labels from the attributes, see codebook. |
clean |
Prepare data by data_clean. |
... |
Placeholder to allow calling the method with unused parameters from tab_metrics. |
Value
A volker tibble.
Examples
library(volker)
data <- volker::chatgpt
tab_metrics_items_grouped(data, starts_with("cg_adoption_"), sd_gender)
[Package volker version 2.1.0 Index]