parents_tv: Determine the mother relationship.

Description Usage Arguments Value Examples

Description

Fairly simple wrapper around an dplyr::if_else() condition. This function is a tidyverse (_tv) version. The goal of the output data is to mimic a network (start node, end node, edge type).

Usage

1
2
3
fmn_mother_tv(.data, .personid, .motherid)

fmn_father_tv(.data, .personid, .fatherid)

Arguments

.data

Dataset with person and mother id, at least.

.personid

Individual's ID.

.motherid

Individual's mother's ID.

.fatherid

Individual's father's ID.

Value

Dataset with the columns: person ID, RelativeID, RelativeType.

Examples

1
2
fmn_mother_tv(fmn_df, "PersonID", "MotherID")
fmn_father_tv(fmn_df, "PersonID", "FatherID")

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