knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

famnet

Travis build status Coverage status lifecycle

The goal of famnet is to characterize a family network, based on having an individual's ID, and their mother's and father's ID.

Installation

Install the developmental version.

# install.packages("remotes")
remotes::install_github("lwjohnst86/famnet")

Usage

You can use the famnet functions to determine family relation links. For instance, say you a dataset like this:

library(famnet)
head(fmn_df)
tail(fmn_df)

And you want to determine sibling relations. You can use:

library(famnet)
fmn_siblings(fmn_df, "PersonID", "MotherID", "FatherID")

Which indicates all the sibling connections in the fmn_df dataset.



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