Learn R Programming

bbl (version 0.1.5)

freq2raw: Convert Frequency Table into Raw Data

Description

Data with unique rows and a frequency column is converted into data with duplicate rows.

Usage

freq2raw(fdata, Freq)

Arguments

fdata

Data frame with factors in columns and a frequency column

Freq

Integer column index or column name of frequency

Value

Raw data frame with one row per instances

Details

The ouput data frame can be used as input to bbl.

Examples

Run this code
# NOT RUN {
Titanic
x <- as.data.frame(Titanic)
head(x)
titanic <- freq2raw(x, Freq='Freq')
head(titanic)
# }

Run the code above in your browser using DataLab