obfuscatePed {nprcgenekeepr} | R Documentation |
obfuscatePed takes a pedigree object and creates aliases for all IDs and adjusts all date within a specified amount.
Description
User provides a pedigree object (ped
), the number of characters to be
used for alias IDs (size
), and the maximum number of days that the
birthdate can be shifted (maxDelta
).
Usage
obfuscatePed(
ped,
size = 6L,
maxDelta = 30L,
existingIds = character(0L),
map = FALSE
)
Arguments
ped |
pedigree object |
size |
integer value indicating number of characters in alias IDs |
maxDelta |
integer value indicating maximum number of days that the birthdate can be shifted |
existingIds |
character vector of existing aliases to avoid duplication. |
map |
logical if |
Value
An obfuscated pedigree
Examples
library(nprcgenekeepr)
ped <- qcStudbook(nprcgenekeepr::pedGood)
obfuscatedPed <- obfuscatePed(ped)
ped
obfuscatedPed
[Package nprcgenekeepr version 1.0.7 Index]