possible_ids {joyn} | R Documentation |
Find possible unique identifies of data frame
Description
Identify possible variables uniquely identifying x
Usage
possible_ids(
dt,
exclude = NULL,
include = NULL,
verbose = getOption("possible_ids.verbose")
)
Arguments
dt |
data frame |
exclude |
character: Exclude variables to be selected as identifiers. It could be either the name of the variables of one type of the variable prefixed by "_". For instance, "_numeric" or "_character". |
include |
character: Name of variable to be included, that might belong
to the group excluded in the |
verbose |
logical: If FALSE no message will be displayed. Default is TRUE |
Value
list with possible identifiers
Examples
library(data.table)
x4 = data.table(id1 = c(1, 1, 2, 3, 3),
id2 = c(1, 1, 2, 3, 4),
t = c(1L, 2L, 1L, 2L, NA_integer_),
x = c(16, 12, NA, NA, 15))
possible_ids(x4)
[Package joyn version 0.2.2 Index]