Learn R Programming

ThomasJeffersonUniv (version 0.1.3)

checkDuplicated: 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"),
  ...
)

Value

Function checkDuplicated returns a data.frame.

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

Examples

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


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

Run the code above in your browser using DataLab