Skip to contents

Is taxon present in the Iberian Peninsula and/or Balearic Islands?

Usage

is_present(genus = NULL, species = NULL, subspecies = NULL, gbif.id = NULL)

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 of species, 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 of subspecies, unless length(species) == 1, in which case it will be assumed that all subspecies belong to that same species.

gbif.id

character. Optional.

Value

A logical vector

Examples

is_present("Laurus")
#> Laurus 
#>   TRUE 
is_present("Laurus", "nobilis")
#> Laurus nobilis 
#>           TRUE 
is_present("Laurus", "azorica")
#> Laurus azorica 
#>          FALSE 
is_present("Laurus", c("nobilis", "azorica"))
#> Laurus nobilis Laurus azorica 
#>           TRUE          FALSE 
is_present(gbif.id = "3034015")
#> 3034015 
#>    TRUE