Retrieve synonyms for species

fauna_synonym(data, species,
                   include_subspecies = TRUE)

Arguments

data

(data.frame) the data.frame imported with the load_faunabr function

species

(character) names of the species

include_subspecies

(logical) include subspecies that are synonyms of the species? Default = TRUE

Value

A data.frame containing unique synonyms of the specified species along with relevant information on taxonomic status.

Examples

data("fauna_data") #Load Flora e Funga do Brasil data
#Species to extract synonyms
spp <- c("Panthera onca", "Mazama jucunda", "Subulo gouzoubira")
spp_synonyms <- fauna_synonym(data = fauna_data, species = spp,
                              include_subspecies = FALSE)
spp_synonyms
#>              validName            synonym taxonomicStatus
#> 3520     Panthera onca               <NA>           valid
#> 9606    Mazama jucunda      Mazama bororo         synonym
#> 9607 Subulo gouzoubira Mazama gouazoubira         synonym