find_familyInfo: Obtains info about a given family (mother x father) and adds...

View source: R/script - family tools.R

find_familyInfoR Documentation

Obtains info about a given family (mother x father) and adds that info to their offspring

Description

Works on a dataframe of individuals (rows) including two columns ID_ma and ID_pa, which are the ID's of that individual's parents. For each individual, looks up another dataset of family info to attach family info to that individual (based on ID of its mother and father df_families structure: must include columns ID_ma and ID_pa for each row (family).

Usage

find_familyInfo(df, df_families, columns)

Eiriksen/Genotools documentation built on Oct. 1, 2022, 1:40 a.m.