checkDuplicated {ThomasJeffersonUniv}R Documentation

Inspect Duplicated Records in a data.frame

Description

To inspect duplicated records in a data.frame.

Usage

checkDuplicated(
  data,
  f,
  dontshow = character(length = 0L),
  file = tempfile(pattern = "checkDuplicated_", fileext = ".xlsx"),
  ...
)

Arguments

data

data.frame

f

formula, criteria of duplication, e.g., use ~ mrn to identify duplicated mrn, or use ~ mrn + visitdt to identify duplicated mrn:visitdt

dontshow

(optional) character scalar or vector, variable names to be omitted in output diagnosis file

file

character scalar, path of diagnosis file, print out of substantial duplicates

...

additional parameters, currently not in use

Value

Function checkDuplicated returns a data.frame.

Examples

(d1 = data.frame(A = c(1, 1), B = c(NA_character_, 'text')))


(d2 = data.frame(A = c(1, 2), B = c(NA_character_, 'text')))


[Package ThomasJeffersonUniv version 0.1.2 Index]