setPairing {dvir} | R Documentation |
Manually set one or several identifications in a DVI dataset. Typically, these are obtained by external means, e.g., fingerprints, dental records etc.
setPairing(
dvi,
match = NULL,
victim = NULL,
missing = NULL,
Conclusion = "Provided",
Comment = "",
verbose = TRUE
)
dvi |
A DVI dataset. |
match |
A named vector of the format c(vic1 = miss2, vic2 = miss2, ...). |
victim |
A vector of victim sample names. If NULL, defaulting to
|
missing |
A vector of missing person names, of the same length as
|
Conclusion |
A character passed on to the |
Comment |
A character passed on to the |
verbose |
A logical, by default TRUE. |
The command setPairing(dvi, c("V" = "M"))
does the following:
Transfer the data of victim "V" to the individual "M" in the appropriate reference family
Remove "M" from the list of missing persons
Remove "V" from the list of victim samples
Update the list of pairings
A list with the following entries:
dviReduced
: The new dviData
object, as described in Details
summary
: A data frame summarising the identifications
x = setPairing(example2, match = c("V3" = "M2"))
x$dviReduced
x$summary
# Alternative syntax, using `victim` and `missing`
y = setPairing(planecrash, victim = c("V4", "V5"), missing = c("M4", "M5"),
Conclusion = "External evidence", Comment = "Dental")
y$dviReduced
y$summary