getBranchQuant: Descendant branch calculations for quantitative variable
Description
Returns a data frame containing the names of all children of an individual of interest ("Name"). The mean and standard deviation ("Mean" and "SD") of a quantitative variable across all descendents of each child is reported. In addition, for each child, the number of its descendants is reported ("Count"), the number of its descendants who do not have a value for the quantitative variable ("NACount") is reported, and the names of all of its descendants is reported ("DesNames").
Usage
getBranchQuant(v1, geneal, colName, gen = 3)
Arguments
v1
the label of the vertex of interest (in character string format)
geneal
the full genealogy (in data frame format)
colName
the name of the column of the data frame that contains the quantitative variable of interest (in character string format)
gen
the number of generations back to include as ancestors
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.
tools:::Rd_expr_doi("10.18637/jss.v089.i13")