Learn R Programming

psytabs (version 1.0)

frequencyTable: Frequency table.

Description

Produces a simple frequeny table.

Usage

frequencyTable(factors)

Arguments

factors
data.frame containing the variables for which the frequency table should be calculated.

Value

A dataframe comprising the frequency table.

Examples

Run this code
data(mydata)
(freq.tab <- frequencyTable(data.frame(Sex=mydata$sex, Age=mydata$age_group7)))

#saveTable(freq.tab, "freqTab.rtf")

Run the code above in your browser using DataLab