Learn R Programming

volker (version 2.1.0)

tab_counts_one: Output a frequency table for the values in one column

Description

Output a frequency table for the values in one column

Usage

tab_counts_one(
  data,
  col,
  ci = FALSE,
  percent = TRUE,
  labels = TRUE,
  clean = TRUE,
  ...
)

Value

A volker tibble.

Arguments

data

A tibble.

col

The column holding values to count.

ci

Whether to compute 95% confidence intervals using stats::prop.test.

percent

Proportions are formatted as percent by default. Set to FALSE to get bare proportions.

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_one(data, sd_gender)

Run the code above in your browser using DataLab