Learn R Programming

GDINA (version 1.4.2)

rowCount: Count and label unique rows in a data frame

Description

Count and label unique rows in a data frame

Usage

rowCount(df)

Arguments

df
a data frame or matrix

Value

freq the number of rows group the data frame with a column named row.no giving unique labels for all unique rows

Examples

Run this code

df <- data.frame(V1=c(1L,2L),V2=LETTERS[1:3],V3=rep(1,12))
rowCount(df)



Run the code above in your browser using DataLab