Learn R Programming

volker (version 2.1.0)

tab_counts_items: Output frequencies for multiple variables

Description

Output frequencies for multiple variables

Usage

tab_counts_items(
  data,
  cols,
  ci = FALSE,
  percent = TRUE,
  values = c("n", "p"),
  labels = TRUE,
  clean = TRUE,
  ...
)

Value

A volker tibble.

Arguments

data

A tibble containing item measures.

cols

Tidyselect item variables (e.g. starts_with...).

ci

Whether to compute 95% confidence intervals.

percent

Set to FALSE to prevent calculating percents from proportions.

values

The values to output: n (frequency) or p (percentage) 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_counts.

Examples

Run this code
library(volker)
data <- volker::chatgpt

tab_counts_items(data, starts_with("cg_adoption_"))

Run the code above in your browser using DataLab