Provides GUID, taxonomic classification, and other information for a list of names. Case-insensitive but otherwise exact matches are used.
search_names( taxa = c(), vernacular = FALSE, guids_only = FALSE, occurrence_count = FALSE, output_format = "simple" )
taxa | string: a single name or vector of names |
---|---|
vernacular | logical: if TRUE, match on common names as well as scientific names, otherwise match only on scientific names |
guids_only | logical: if TRUE, a named list of GUIDs will be returned. Otherwise, a data frame with more comprehensive information for each name will be returned. |
occurrence_count | logical: if TRUE (and if |
output_format | string: controls the print method for the returned object (only has an effect when |
A data frame of results, or named list of GUIDs if guids_only
is TRUE. The results should include one entry (i.e. one data.frame row or one list element) per input name. The columns in the data.frame output may vary depending on the results returned by the SBDI server, but should include searchTerm, name, rank, and guid.
The associated SBDI web service: https://api.biodiversitydata.se/#ws87
if (FALSE) { search_names(c("Diatoma tenuis","Diatoma hyemale var. quadratum", "Macropus")) search_names(c("Diatoma tenuis","Diatoma hyemale var. quadratum","Macropus"), guids_only=TRUE) search_names("Diatoma tenuis",vernacular=FALSE) search_names("Diatoma tenuis",vernacular=TRUE) ## occurrence counts for matched names search_names(c("Diatoma tenuis","Diatoma hyemale var. quadratum", "Macropus","Thisisnot aname"),occurrence_count=TRUE) ## no occurrence counts because guids_only is TRUE search_names(c("Diatoma tenuis","Diatoma hyemale var. quadratum", "Macropus","Thisisnot aname"),occurrence_count=TRUE,guids_only=TRUE) }