Learn R Programming

uwo4419 (version 0.3.0)

freqDist: Frequency Distribution

Description

Produces a frequency distribution, relative frequency distribution and cumulative distribution from a factor vector.

Usage

freqDist(x)

Arguments

x

A factor or a numeric variable with relatively few unique vales.

Value

A matrix with the following columns:

Freq

The raw frequency count

Percent

The relative frequency or percentage of observations in each group

CuPct

The cumulative percentage of observations in each group

Examples

Run this code
# NOT RUN {
data(alberta)
freqDist(alberta$k6group)
# }

Run the code above in your browser using DataLab