Nkin | R Documentation |
Computes, for each ego, number of kin of given type (parents, grandparents, aunts, uncles, siblings, etc.)
Nkin(idkin)
idkin |
dataframe of IDs of ego and IDs of kin of given type |
Number of kin of given type
# Load the data
data(dLH,package="Families")
idego <- dLH$ID[dLH$gen==3]
## Number of siblings
idsib <- IDsib(idego)
names(idsib$id) <- idego
nsib <- Nkin(idkin=idsib$d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.