rel_freq: Relative frequency of values of a categorical variable.

View source: R/utils.R

rel_freqR 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)

msu documentation built on Oct. 7, 2026, 1:07 a.m.