whichDups {replacer} | R Documentation |
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.
whichDups(x)
x |
A data.table. |
A named character vector. Data columns containing distinct sets of duplicated values have the names indexed.
if (interactive()) {
dir = system.file('extdata', package = 'replacer')
setwd(dir)
x = data.table::fread('data.csv', na.strings = c(NA_character_, ''))
whichDups(x)
}