Join us for
RADAR: AI Edition

msu (version 0.0.1)

rel_freq: 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

Run this code
# 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