Parses the input_name column from a taxify() result to extract
hybrid parent names and classify the hybrid type.
Arguments
- x
A data.frame returned by
taxify().
Value
The same data.frame with additional columns:
- hybrid_parent_1
First parent (full binomial),
NAif not a hybrid formula.- hybrid_parent_2
Second parent (full binomial, abbreviated genus expanded),
NAif not a hybrid formula.- hybrid_type
One of
"nothogenus","nothospecies","formula", orNAif not a hybrid.
Examples
# Runs offline against the bundled example database.
old <- options(taxify.data_dir = taxify_example_data())
taxify("Quercus pyrenaica x Q. petraea") |>
add_hybrid_info()
options(old)