freqTable: Frequency table

View source: R/freqTable.R

freqTableR Documentation

Frequency table

Description

Creates 1-dimensional or 2-dimensional frequency tables

Usage

freqTable(df, var1, var2)

Arguments

df

a data.frame containing var1 and var2

var1

variable to count observations by

var2

additional variable to count observations by (optional)

Value

A tibble with the number of observations per distinct value of var 1 and optionally var2

Examples

data(mpg)
freqTable(mpg, "trans")
freqTable(mpg, "trans", "year")

kelloggs13/nifty documentation built on Nov. 18, 2022, 12:21 a.m.