parsenames: Parse taxon names using the GBIF name parser.

Description Usage Arguments Value Author(s) References Examples

View source: R/parsenames.R

Description

Parse taxon names using the GBIF name parser.

Usage

1
parsenames(scientificname, curlopts = list())

Arguments

scientificname

A character vector of scientific names.

curlopts

list of named curl options passed on to HttpClient. see curl_options for curl options

Value

A data.frame containing fields extracted from parsed taxon names. Fields returned are the union of fields extracted from all species names in scientificname.

Author(s)

John Baumgartner ([email protected])

References

http://www.gbif.org/developer/species#parser

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
parsenames(scientificname='x Agropogon littoralis')
parsenames(c('Arrhenatherum elatius var. elatius',
             'Secale cereale subsp. cereale', 'Secale cereale ssp. cereale',
             'Vanessa atalanta (Linnaeus, 1758)'))
parsenames("Ajuga pyramidata")
parsenames("Ajuga pyramidata x reptans")

# Pass on curl options
# res <- parsenames(c('Arrhenatherum elatius var. elatius',
#          'Secale cereale subsp. cereale', 'Secale cereale ssp. cereale',
#          'Vanessa atalanta (Linnaeus, 1758)'), curlopts=list(verbose=TRUE))

## End(Not run)

rgbif documentation built on May 30, 2017, 5:39 a.m.