get_duplicates: Find the duplicates

Description Usage Arguments Value Note

View source: R/assert.R

Description

Find the duplicates

Usage

1
get_duplicates(x, only.key = FALSE, by = key(x))

Arguments

x

a data.table object

only.key

When TRUE and x has key, only the key columns are returned.

by

The columns used for uniqueness checks. By default, it only relies on the key columns of x to decide duplication. See data.table::duplicated() for more info.

Value

The duplicated records of x.

Note

When x has keys, the duplicateness is dependes on the key columns only.


shrektan/dtkit documentation built on Nov. 26, 2021, 10:50 p.m.