count_dups: count_dups

Description Usage Arguments Examples

Description

Returns a count of duplicate values for each duplicated value. That is, if you have a column that is supposed to be unique, but there are two instances of a given value, it will return a count of 2 for that value.

Usage

1

Arguments

df

The source dataframe

...

A select style set of variables to check for duplicates.

sort

whether to sort the results by the number of duplicates. Default is FALSE

Examples

1
count_dups(iris, Sepal.Width, Sepal.Length)

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