duplicated_rows: Function to return duplicated rows in a data frame.

View source: R/duplicate_rows.R

duplicated_rowsR Documentation

Function to return duplicated rows in a data frame.

Description

duplicated_rows can be though as the inverse of distinct.

Usage

duplicated_rows(df, variable, invert = FALSE)

Arguments

df

Data frame.

variable

A vector of variables to test for uniqueness.

invert

Should the function exclude duplicated. This is the same as distinct.

Value

Data frame.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.