Simple function showing frequencies of vector by combining results from table and prop.table.

preview_frequency_table(x, ...)

Arguments

x

A vector.

...

Other arguments passed to table.

Value

A matrix with frequency values of a vector

Examples

preview_frequency_table(x = c("a", rep("b", 3)))
#> num_obs freq #> a 1 0.25 #> b 3 0.75