freqtbl_superbasic: freqtbl_superbasic function

View source: R/summary.R

freqtbl_superbasicR Documentation

freqtbl_superbasic function

Description

creates frequency tables the way I like them. with freq, valid pct, and in descending order of frequency. this function allows you to change the name of the category columns, and whether or not totals and NAs are displayed

Usage

freqtbl_superbasic(variable, name = "Category", total = FALSE, countna = TRUE)

Arguments

variable

the variable from which a frequency table will be created

name

the name to appear in the table for the different categories. defaults to 'Category'

total

boolean argument determining if a total should be added to the bottom of the table. defaults to FALSE

countna

boolean argument determining if na's should be omitted (FALSE) or added as a frequency category (TRUE). defaults to TRUE

Examples

freqtbl_superbasic_function()

clmacleod/highlandr documentation built on April 17, 2025, 3:30 a.m.