pkgdown/mathjax-config.html

Skip to contents

Parses the input_name column from a taxify() result to extract hybrid parent names and classify the hybrid type.

Usage

add_hybrid_info(x)

Arguments

x

A data.frame returned by taxify().

Value

The same data.frame with additional columns:

hybrid_parent_1

First parent (full binomial), NA if not a hybrid formula.

hybrid_parent_2

Second parent (full binomial, abbreviated genus expanded), NA if not a hybrid formula.

hybrid_type

One of "nothogenus", "nothospecies", "formula", or NA if 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)