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 or omitted genus expanded),
NAif not a hybrid formula.- hybrid_parent_1_accepted, hybrid_parent_2_accepted
The accepted name each parent resolves to against the backbone(s) used for
x(from the result's metadata), orNAif the parent did not match.- hybrid_parent_1_id, hybrid_parent_2_id
The backbone
taxon_idof the accepted taxon each parent resolves to, usable directly withid2name(), orNAif the parent did not match. An unresolved hybrid formula carriesNAin the result's owntaxon_id(it has no single backbone record); these two columns are where the component IDs live.- hybrid_type
One of
"nothogenus","nothospecies","formula", orNAif not a hybrid (same value as thehybrid_typecolumn already on ataxify()result).
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)