Learn R Programming

rpf (version 1.0.14)

expandDataFrame: Expand summary table of patterns and frequencies

Description

Expand a summary table of unique response patterns to a full sized data-set.

Usage

expandDataFrame(tabdata, freqName = NULL)

Value

Returns a data frame with all the response patterns

Arguments

tabdata

An object of class data.frame with the unique response patterns and the number of frequencies

freqName

Column name containing the frequencies

Author

Based on code by Phil Chalmers rphilip.chalmers@gmail.com

Examples

Run this code
data(LSAT7)
expandDataFrame(LSAT7, freqName="freq")

Run the code above in your browser using DataLab