rel_freq {msu} | R Documentation |
Relative frequency of values of a categorical variable.
Description
Relative frequency of values of a categorical variable.
Usage
rel_freq(variable)
Arguments
variable |
A factor as a categorical variable |
Value
Relative frecuency distribution table for the values in
variable
.
Examples
rel_freq(factor(c(0,1)))
rel_freq(factor(c('a','a','b')))
## Not run:
rel_freq(c(0,1))
## End(Not run)
[Package msu version 0.0.1 Index]