rel_freq: Relative frequency of values of a categorical variable.

Description Usage Arguments Value Examples

Description

Relative frequency of values of a categorical variable.

Usage

1
rel_freq(variable)

Arguments

variable

A factor as a categorical variable

Value

Relative frecuency distribution table for the values in variable.

Examples

1
2
3
4
5
6
rel_freq(factor(c(0,1)))
rel_freq(factor(c('a','a','b')))
## Not run: 
rel_freq(c(0,1))

## End(Not run)

msu documentation built on May 2, 2019, 6:43 a.m.

Related to rel_freq in msu...