freq2raw {bbl} | R Documentation |
Data with unique rows and a frequency column is converted into data with duplicate rows.
freq2raw(fdata, Freq)
fdata |
Data frame with factors in columns and a frequency column |
Freq |
Integer column index or column name of frequency |
The ouput data frame can be used as input to bbl
.
Raw data frame with one row per instances
Titanic x <- as.data.frame(Titanic) head(x) titanic <- freq2raw(x, Freq='Freq') head(titanic)