table_sorted: table_sorted

Description Usage Examples

View source: R/misc.R

Description

Get a frequency table from a vector of categorical variables sorted by frequency in descending order

Usage

1
table_sorted(myvector)

Examples

1
2
myvec <- c("white", "blue", "purple", "white", "blue", "blue", "blue", "purple", "yellow", "white")
table_sorted(myvec)

smach/rmiscutils documentation built on Dec. 15, 2021, 1:49 a.m.