Skip to contents

Joins the per-area status Euro+Med PlantBase states for a taxon (native, naturalised, introduced, casual, ...) to a taxify() result, for the areas or countries asked for. The names and the ids of the euromed backbone are the same taxa the status is recorded on, so a result matched against any backbone joins through its accepted name.

Usage

add_euromed_distribution(x, region, cols = NULL, verbose = TRUE)

Arguments

x

A data.frame returned by taxify().

region

Character. ISO 3166-1 alpha-2 country code(s), Euro+Med area code(s), or "all". A code that is an ISO code of a Euro+Med area is read as the country; anything else must be an area code, as listed by euromed_areas().

  • Single region: adds euromed_status (no suffix).

  • Several regions: adds euromed_status_<code> per region.

  • "all": one column per area.

cols

Which columns to attach. NULL (the default) attaches euromed_status; a character vector attaches just those, and "all" attaches every column the source carries (see enrichment_cols()), among them euromed_status_detail, euromed_status_source, euromed_area_name, euromed_iso2 and the taxon's Euro+Med UUID, euromed_taxon_id.

verbose

Logical. Default TRUE.

Value

The same data.frame with euromed_status, one of "native", "naturalised", "introduced", "casual", "cultivated", "doubtful" or "extinct", and NA where Euro+Med states nothing for the region. euromed_status_detail carries the term as Euro+Med words it ("endemic", "introduced: uncertain degree of naturalisation"). euromed_status_source holds the ids of the citing references; resolve them with cite(x$euromed_status_source, source = "euromed_distribution").

Details

Source: Euro+Med PlantBase (CC BY-SA), European and Mediterranean vascular plants, bryophytes and some fungi and algae. A report Euro+Med marks as made in error is not carried; a former presence is "extinct". Where the records of one taxon and area disagree, the stronger claim wins in the order given above (a taxon is native wherever a record says so), and the references are those of the records stating it. The country of an area comes from its own name, so a combined area has none and its countries are read from the level-2 areas.

Examples

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

taxify("Solidago canadensis") |>
  add_euromed_distribution(region = "DE")
#> Matching 1 names against 8 backbones: col -> wcvp -> lcvp -> wfo -> fishbase -> sealifebase -> reptiledb -> gbif
#>   [col] Matching 1 names...
#>   [wcvp] Matching 1 remaining names...
#>   [lcvp] Matching 1 remaining names...
#>   [wfo] Matching 1 remaining names...
#>   [fishbase] Matching 1 remaining names...
#>   [sealifebase] Matching 1 remaining names...
#>   [reptiledb] Matching 1 remaining names...
#>   [gbif] Matching 1 remaining names...
#>   [col] Fuzzy matching 1 unmatched...
#>   [wcvp] Fuzzy matching 1 unmatched...
#>   [lcvp] Fuzzy matching 1 unmatched...
#>   [wfo] Fuzzy matching 1 unmatched...
#>   [gbif] Fuzzy matching 1 unmatched...
#>            input_name matched_name accepted_name taxon_id accepted_id rank
#> 1 Solidago canadensis         <NA>          <NA>     <NA>        <NA> <NA>
#>   family genus epithet authorship accepted_authorship is_synonym
#> 1   <NA>  <NA>    <NA>       <NA>                <NA>         NA
#>   taxonomic_status is_hybrid match_type fuzzy_dist backbone backbone_version
#> 1             <NA>     FALSE       none         NA     <NA>             <NA>
#>   kingdom_group taxon_group life_form qualifier qualifier_position
#> 1       plantae     unknown   unknown      <NA>               <NA>
#>   aggregate_fallback hybrid_type euromed_status
#> 1                 NA        <NA>           <NA>

options(old)