gnr_simple: checks species names against a variety of online databases...

View source: R/gnr_simple.r

gnr_simpleR Documentation

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,
  canonical = TRUE,
  with_context = TRUE,
  higher = FALSE
)

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?

canonical

If TRUE, names do not include authorship or date

with_context

If TRUE, Match scores are weighted for taxonomic consistency

higher

boolean: Return higher taxonomic classifications?

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

Examples

#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

algaeClassify documentation built on Oct. 11, 2024, 5:07 p.m.