whichDups: Find duplicated values in data

Description Usage Arguments Value Examples

View source: R/whichDups.R

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

1

Arguments

x

A data.table.

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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 Sept. 5, 2021, 5:18 p.m.