powered by
To inspect duplicated records in a data.frame.
checkDuplicated( data, f, dontshow = character(length = 0L), file = tempfile(pattern = "checkDuplicated_", fileext = ".xlsx"), ... )
Function checkDuplicated returns a data.frame.
data.frame
formula, criteria of duplication, e.g., use ~ mrn to identify duplicated mrn, or use ~ mrn + visitdt to identify duplicated mrn:visitdt
~ mrn
mrn
~ mrn + visitdt
mrn:visitdt
(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
(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