Description Usage Arguments Value Examples
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).
1 2 3 | fmn_mother_tv(.data, .personid, .motherid)
fmn_father_tv(.data, .personid, .fatherid)
|
.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. |
Dataset with the columns: person ID, RelativeID, RelativeType.
1 2 | fmn_mother_tv(fmn_df, "PersonID", "MotherID")
fmn_father_tv(fmn_df, "PersonID", "FatherID")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.