Output frequencies for multiple variables
tab_counts_items(
data,
cols,
ci = FALSE,
percent = TRUE,
values = c("n", "p"),
labels = TRUE,
clean = TRUE,
...
)
A volker tibble.
A tibble containing item measures.
Tidyselect item variables (e.g. starts_with...).
Whether to compute 95% confidence intervals.
Set to FALSE to prevent calculating percents from proportions.
The values to output: n (frequency) or p (percentage) 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_counts.
library(volker)
data <- volker::chatgpt
tab_counts_items(data, starts_with("cg_adoption_"))
Run the code above in your browser using DataLab