uniqRowFreqs: Count Occurrences of Replicate Rows in a Data.Frame

Description Usage Arguments Details Value Author(s)

View source: R/uniqRowFreqs.R

Description

uniqRowFreqs() identifies unique data.frame rows and counts how often each occurs.

Usage

1
uniqRowFreqs(DF, simplify = TRUE)

Arguments

DF

A data.frame (or object that can be coerced into a data.frame)

simplify

Logical; if TRUE, return only UROWS data.frame, without UROW.ID column and UROW.FREQ column renames as "n.rows".

Details

Value

if simplify==TRUE, returns a data.frame, where the first column is called "n.rows" and the remaining columns have the same names as DF. All rows are unique, and n.rows contains the counts of occurrences of each row in DF.

if simplify==FALSE returns a list with two named elements:

Author(s)

M.W.Rowe, mwr.stats@gmail.com


mwrowe/microRutils documentation built on June 12, 2021, 2:41 p.m.