tab: like tab from statar, but ONLY works for vectors

Description Usage Arguments Value

View source: R/tab.R

Description

From https://github.com/matthieugomez/statar/ with significant modifications

Usage

1
2
tab(x, sf = TRUE, sv = FALSE, ss = 10, sort_freq = sf,
  sort_values = sv, suppress_small = ss)

Arguments

x

A vector

sf

shorthand for sort_freq

sv

shorthand for sort_values

ss

shorthand for suppress_small

sort_freq

sort by frequency large to small.

sort_values

sort by values large to small. overrides sort_freq.

suppress_small

suppresses beyond this many levels for printing. only applies if sort_freq=TRUE. default 10. set to FALSE or Inf to not suppress.

Value

a data.frame with the tabulation


rdisalv2/dismisc documentation built on Nov. 2, 2021, 1:34 a.m.