View source: R/tweakPedigree.R
addPersonToPed | R Documentation |
data.frame
.addPersonToTree
A function to add a new person to an existing pedigree data.frame
.
addPersonToPed(
ped,
name = NULL,
sex = NULL,
momID = NA,
dadID = NA,
twinID = NULL,
personID = NULL,
zygosity = NULL
)
ped |
A |
name |
Optional. A character string representing the name of the new person. If not provided, the name will be set to |
sex |
A value representing the sex of the new person. |
momID |
Optional. The ID of the mother of the new person. If not provided, it will be set to |
dadID |
Optional. The ID of the father of the new person. If not provided, it will be set to |
twinID |
Optional. The ID of the twin of the new person. If not provided, it will be set to |
personID |
Optional. The ID of the new person. If not provided, it will be generated as the maximum existing personID + 1. |
zygosity |
Optional. A character string indicating the zygosity of the new person. If not provided, it will be set to |
A data.frame
with the new person added to the existing pedigree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.