getBranchQuant | R Documentation |
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").
getBranchQuant(v1, geneal, colName, gen = 3)
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 |
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")}
data(statGeneal)
DC_Year <- getBranchQuant("David Cox", statGeneal, "gradYear", 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.