fmn_siblings: Determine who are siblings using only ID, mother ID, and...

Description Usage Arguments Value Functions Examples

Description

This function is best used with data on a very large population, that has information on an individual as well as that person's parent's IDs. Common datasets with this information would be population level register databases, such as found in Denmark or Sweden.

Usage

1
2
3
4
5
fmn_siblings(.data, .personid, .motherid, .fatherid)

fmn_siblings_tv(.data, .personid, .motherid, .fatherid)

fmn_siblings_dt(.data, .personid, .motherid, .fatherid)

Arguments

.data

Data that contains columns of persons IDs, for the individual, mother, and father.

.personid

Column with main person's ID.

.motherid

Column with person's mother's ID.

.fatherid

Column with person's father's ID.

Value

A dataset with at least:

Functions

Examples

1
2
# Uses tidyverse under the hood. There is a data.table version available.
fmn_siblings(fmn_df, "PersonID", "MotherID", "FatherID")

lwjohnst86/famnet documentation built on May 30, 2019, 11:41 p.m.