Nkin {Families} | R Documentation |
Number of kin of given type
Description
Computes, for each ego, number of kin of given type (parents, grandparents, aunts, uncles, siblings, etc.)
Usage
Nkin(idkin)
Arguments
idkin |
dataframe of IDs of ego and IDs of kin of given type |
Value
Number of kin of given type
Examples
# 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)
[Package Families version 2.0.2 Index]