whichDups: Find duplicated values in data

View source: R/whichDups.R

whichDupsR Documentation

Find duplicated values in data

Description

The function finds duplicated values in each column of the data file. Although not intended for direct use, it can be applied to a data file once converted into "data.table" class.

Usage

whichDups(x)

Arguments

x

A data.table.

Value

A named character vector. Data columns containing distinct sets of duplicated values have the names indexed.

Examples


if (interactive()) {

  dir = system.file('extdata', package = 'replacer')
  setwd(dir)

  x = data.table::fread('data.csv', na.strings = c(NA_character_, ''))

  whichDups(x)

}


replacer documentation built on Aug. 20, 2022, 1:06 a.m.