IDfather | R Documentation |
Retrieves the ID of the father of ego or fathers of vector of egos. ID of the father is the ID of the partner of the mother. If the ID of the father listed in the dataset d differs from the ID of the mother's partner, a warning is given.
IDfather(idego, d = NULL)
idego |
ID of ego(s) |
d |
Name of database. If missing the dataset dLH distributed with the Families package is used. |
ID of father or (if keep_ego=TRUE, dataframe with ego-father dyals: ID of ego and ID of father). Returns NA if ID of father is not included in the database
# Load the data
data(dLH,package = "Families")
set.seed(31)
idf <- IDfather (idego=sample (dLH$ID[dLH$gen>=2],10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.