sep_dups: sep_dups

Description Usage Arguments Details Examples

Description

Return a list of dataframes two elements

Usage

1

Arguments

df

The source dataframe

...

A select style set of variables to check for duplicates. Uses standard evaluation, so you need to wrap in quotes

Details

* .$unique - observations that have no duplicate elements (i.e., it does not pick one from the duplicated elements) * .$duplicates - observations that have any duplicate elements (i.e., if there are two duplicates for an observation, it returns both of them)

The 'length(unique)' + 'length(duplicates)' should equal the length of df

Examples

1
sep_dups(iris, "Sepal.Width", "Sepal.Length")

rgknight/knightr documentation built on May 27, 2019, 7:22 a.m.