Description Usage Arguments Value Functions Examples
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.
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)
|
.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. |
A dataset with at least:
PersonID
: An individual's ID
RelativeID
: An ID of one of the individual's relative or family member
RelativeType
: The type of relationship between the person and the relative
fmn_siblings_tv
: Function to determine sibling relationships, using
"tidyverse" functions (e.g.
dplyr).
fmn_siblings_dt
: Function to determine sibling relationships using
data.table functions.
1 2 | # Uses tidyverse under the hood. There is a data.table version available.
fmn_siblings(fmn_df, "PersonID", "MotherID", "FatherID")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.