powered by
Data with unique rows and a frequency column is converted into data with duplicate rows.
freq2raw(data, freq)
Data frame with factors in columns
Vector of frequency of each row in data; can be a named column in data; if missing, the column Freq is looked for in data
data
Freq
Data frame with one row per instances
The ouput data frame can be used as input to bbl.
bbl
# NOT RUN { Titanic x <- as.data.frame(Titanic) head(x) titanic <- freq2raw(data=x[,1:3], freq=x$Freq) head(titanic) # }
Run the code above in your browser using DataLab