pkgdown/mathjax-config.html

Skip to contents

Parses the input_name column from a taxify() result to extract taxonomic qualifiers (cf., aff., s.l., etc.) and their positions.

Usage

add_qualifier_info(x)

Arguments

x

A data.frame returned by taxify().

Value

The same data.frame with additional columns:

qualifier

The qualifier found (e.g., "cf.", "aff."), or NA if none.

qualifier_position

Integer position (character index) of the qualifier in the original name, or NA if none.

Examples

# Runs offline against the bundled example database.
old <- options(taxify.data_dir = taxify_example_data())

taxify("Pinus cf. sylvestris") |>
  add_qualifier_info()

options(old)