unique_id: Check if the id columns are unique

Description Usage Arguments Value Examples

View source: R/unique_id.R

Description

Check if the id columns are unique

Usage

1

Arguments

x

a data frame

...

the unquoted column names of the id variables

Value

If the id variables are unique TRUE. Else, the rows in 'x' for which the id variables are not unique, arranged by id variables.

Examples

1
2
3
mtcars %>% unique_id(cyl, disp)
mtcars %>% unique_id(cyl, wt)
mtcars %>% unique_id(cyl, qsec)

EdwinTh/thatssorandom documentation built on Jan. 18, 2020, 2:55 p.m.