freq_table: Compute Frequency Table

View source: R/freq_table.R

freq_tableR Documentation

Compute Frequency Table

Description

compute frequency table.

Usage

freq_table(data, ..., vars = NULL, na.rm = TRUE)

Arguments

data

a data frame

...

One or more unquoted expressions (or variable names) separated by commas. Used to specify variables of interest.

vars

optional character vector containing variable names.

na.rm

logical value. If TRUE (default), remove missing values in the variables used to create the frequency table.

Value

a data frame

Examples

data("ToothGrowth")
ToothGrowth %>% freq_table(supp, dose)

rstatix documentation built on Feb. 16, 2023, 6:10 p.m.