Learn R Programming

algaeClassify (version 2.0.4)

gnr_simple: checks species names against a variety of online databases supports fuzzy partial matching, using the Global Names Resolver (https://resolver.globalnames.org/)

Description

Provides convienent output with a single result, using a variety of criteria for the best match

Usage

gnr_simple(
  name,
  sourceid = NULL,
  best_match = TRUE,
  fuzzy_uninomial = TRUE,
  canonical = TRUE,
  with_context = TRUE,
  higher = FALSE
)

Value

new data.frame with name matches, column indicating match type and scores from Global Names Resolver (https://resolver.globalnames.org/). Will contain a row of NAs if no matches found

Arguments

name

character string binomial scientific name to resolve

sourceid

integer vector with data source ids. see https://resolver.globalnames.org/sources/

best_match

boolean. Should the best match be returned based on score?

fuzzy_uninomial

boolean. Use fuzzy matching for uninomial names?

canonical

boolean. return canonical name?

with_context

boolean. Return context (auther of species name?)

higher

boolean: Return higher taxonomic classifications?

Examples

Run this code
#Visit https://resolver.globalnames.org/data_sources to see all possible
#data sources for name checking.
name<-"Aphanazomenon flos-aquae"
#sourceid=3 for ITIS database,195 for Algaebase
gnr_simple(name,sourceid=3) #search for ITIS matches
gnr_simple(name,sourceid=NULL) #search for matches from any source

Run the code above in your browser using DataLab