nodeToDF: Returns the data frame representation of all ancestors and...

nodeToDFR Documentation

Returns the data frame representation of all ancestors and descendants of a variety

Description

Converts the list-style-genealogy to a data frame, where each variety has an id value and references its' parent's id value. ID value ranges correspond to generation. It is possible that with more complex genealogical structures the range of id values may need to expand to reduce the probability of two varieties being assigned the same id value.

Usage

nodeToDF(tlist, branch = 0, par.id = NA, id = 1)

Arguments

tlist

list of varieties

branch

of particular variety in the genealogy

par.id

the id of the parent

id

id offset


lrutter/ggenealogy documentation built on Feb. 22, 2024, 8:03 p.m.