Learn R Programming

ggenealogy (version 0.2.0)

getParent: Returns the parents of a particular variety (if they exist)

Description

This function returns up to two values that indicate the parents of the inputted variety.

Usage

getParent(v1, geneal)

Arguments

v1
the label of the variety/vertex of interest (in character string format)
geneal
the full genealogy (in data frame format)

Examples

Run this code
data(sbGeneal)
getParent("Tokyo", sbGeneal)
getParent("Essex", sbGeneal)

Run the code above in your browser using DataLab