Is taxon endemic of the Iberian Peninsula and/or Balearic Islands? That is, not present naturally elsewhere in the world.
Arguments
- genus
character. One or more genera to check for presence. Required, unless
gbif.id
is provided.- species
character. Optional. One or more species names to check for presence. The length of
genus
must equal that ofspecies
, unless length(genus) == 1, in which case it will be assumed that all species belong to that same genus.- subspecies
character. Optional. One or more subspecies names to check for presence. The length of
species
must equal that ofsubspecies
, unless length(species) == 1, in which case it will be assumed that all subspecies belong to that same species.- gbif.id
character. Optional.
Details
For a genus to be considered endemic, all its species must be endemic. Likewise, for a species to be considered endemic, all its subspecies must be endemic.
Examples
is_endemic("Laurus")
#> Laurus
#> FALSE
is_endemic("Aconitum")
#> Aconitum
#> FALSE
is_endemic("Aconitum", "variegatum")
#> Aconitum variegatum
#> TRUE
is_endemic("Aconitum", "napellus")
#> Aconitum napellus
#> FALSE
is_endemic("Aconitum", "napellus", c("vulgare", "castellanum", "lusitanicum"))
#> Aconitum napellus castellanum Aconitum napellus lusitanicum
#> TRUE FALSE
#> Aconitum napellus vulgare
#> FALSE