IDmother | R Documentation |
Retrieves the ID of mother of ego or mothers of vector of egos
IDmother(idego, d = NULL)
idego |
ID |
d |
Name of database. If d is missing, the dataset dLH in the global environment (R workspace) is used. If no dLH in the global environment, the database dLH distributed with the Families package is used. |
ID of mother. Returns NA if ID of mother is not included in the database
# load the data
data(dLH,package = "Families")
IDmother (sample(dLH$ID[dLH$gen==2],1),d=dLH)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.