freqtbl_basic: freqtbl_basic function

View source: R/summary.R

freqtbl_basicR Documentation

freqtbl_basic function

Description

creates frequency tables the way I like them. with freq, valid

Usage

freqtbl_basic(
  variable,
  name = "Category",
  total = FALSE,
  countna = TRUE,
  orderbycat = FALSE,
  reverseorder = 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

orderbycat

boolean argument determining if the table sould be sorted by its categories (TRUE) instead of its frequencies (FALSE). defaulst to FALSE

reverseorder

boolean argument determining if the table should be sorted from lowest to highest frequency (FALSE). defaults to TRUE

Examples

freqtbl_basic_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.