getDescendants: Returns a list of the descendants of a particular variety (if...

View source: R/allFunctions.R

getDescendantsR Documentation

Returns a list of the descendants of a particular variety (if they exist)

Description

This function returns a list of the descendants of the inputted variety within and including a given number of generations

Usage

getDescendants(v1, geneal, gen = 3)

Arguments

v1

the label of the vertex of interest (in character string format)

geneal

the full genealogy (in data frame format)

gen

the number of generations back to include as descendants

References

Rutter L, VanderPlas S, Cook D, Graham MA (2019). ggenealogy: An R Package for Visualizing Genealogical Data. Journal of Statistical Software, 89(13), 1–31. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v089.i13")}

Examples

data(sbGeneal)
getChild("Essex", sbGeneal)
getDescendants("Essex", sbGeneal, 1)
getDescendants("Essex", sbGeneal, 3)

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