R: Compress a data frame into unique rows and frequencies

compressDataFrame {rpf} | R Documentation

## Compress a data frame into unique rows and frequencies

### Description

Compress a data frame into unique rows and frequency counts.

### Usage

    compressDataFrame(tabdata, freqColName = "freq")

### Arguments

`tabdata` | An object of class `data.frame`
`freqColName` | Column name to contain the frequencies

### Value

Returns a compressed data frame

### Examples

    df <- as.data.frame(matrix(c(sample.int(2, 30, replace=TRUE)), 10, 3))
    compressDataFrame(df)

[Package rpf version 0.59 Index]