tabulateRows: Tabulate data.frame rows

View source: R/dataframe.R

tabulateRowsR Documentation

Tabulate data.frame rows

Description

Like tabulate but entire rows are the unit of tabulation. The data.frame is not sorted, but must be sorted already.

Usage

tabulateRows(observed)

Arguments

observed

a sorted data.frame holding ordered factors in every column

See Also

orderCompletely

Examples

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

rpf documentation built on Aug. 22, 2023, 1:06 a.m.