Learn R Programming

etasFLP (version 2.2.2)

MLA.freq: Display a pretty frequency table

Description

Display a pretty frequency table. It is only a wrapper to the function table but with a richer output, at least for numerical variables.

Usage

MLA.freq(x)

Value

return a matrix with 7 columns: the modaldistinct values of x, frequencies, relative frequencies, cumulated frequencies, cumulated relative frequencies, back cumulated frequencies and back cumulated relative frequencies.

Arguments

x

a numeric vector.

Author

Marcello Chiodi

Details

The output gives the different kinds of frequencies and cumulated frequencies: single frequencies, cumulated and back cumulated (absolute and relatives).

Examples

Run this code


x=trunc(runif(1000)*10)
MLA.freq(x)

data(italycatalog)
MLA.freq(italycatalog$magn1)


Run the code above in your browser using DataLab