powered by
Relative frequency of values of a categorical variable.
rel_freq(variable)
A factor as a categorical variable
Relative frecuency distribution table for the values in variable.
variable
# NOT RUN { rel_freq(factor(c(0,1))) rel_freq(factor(c('a','a','b'))) # } # NOT RUN { rel_freq(c(0,1)) # }
Run the code above in your browser using DataLab