powered by
This function creates a frequency table, you only need to supply a data.frame and the variable to make the table.
freq_tbl( obj, var, sort_by = { { var } }, desc = FALSE )
A tibble with 4 rows and 3 columns
Object used to create the table. Data frame, list or environment (or object coercible by as.data.frame to a data frame)
Variable that you want the table (not written in string format)
Variable you want to sort the tibble
tibble
if you want decreasing order put FALSE
FALSE
iris %>% fastrep::freq_tbl(Species) %>% fastrep::tbl("You can combine this function too!")
Run the code above in your browser using DataLab