#
https://www.programmingr.com/statistics/frequency-table/
data(mtcars)
factor(mtcars$cyl) # factor in R
table(mtcars$cyl) # table in r
plyr::count(mtcars, 'cyl') # dplyr frequency table
epiDisplay::tab1(mtcars$cyl,sort.group="decreasing",cum.percent=T)