Learn R Programming

rstatix (version 0.7.2)

freq_table: Compute Frequency Table

Description

compute frequency table.

Usage

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

Value

a data frame

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.

Examples

Run this code
data("ToothGrowth")
ToothGrowth %>% freq_table(supp, dose)

Run the code above in your browser using DataLab