Produces a contingency table of the elements of a vector calculating relative frequencies as well.

tabela(x, label = "variavel")

Arguments

x

A vector

label

Quoted name of the column to create in output

Value

A data frame containing frequency and relative frequencies for the levels of x