Compress a data frame into unique rows and frequencies
Compress a data frame into unique rows and frequency counts.
compressDataFrame(tabdata, freqColName = "freq", .asNumeric = FALSE)
tabdata |
An object of class |
freqColName |
Column name to contain the frequencies |
.asNumeric |
logical. Whether to cast the frequencies to the numeric type |
Returns a compressed data frame
df <- as.data.frame(matrix(c(sample.int(2, 30, replace=TRUE)), 10, 3)) compressDataFrame(df)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.