compress.data.frame: "Compress" a data frame

Description Usage Arguments Value See Also Examples

View source: R/misc.utilities.R

Description

This function "compresses" a data frame, returning unique rows and a tally of the number of times each row is repeated

Usage

1

Arguments

x

A data frame.

Value

A list with two elements:

rows

Unique rows of x

frequencies

A vector of the same length as the number or rows, giving the number of times the corresponding row is repeated

See Also

data.frame

Examples

1
2
3
4
5

statnet.common documentation built on May 29, 2017, 6:17 p.m.

Search within the statnet.common package
Search all R packages, documentation and source code