Get the UID codes from NCBI for species names.

Usage

get_uid(sciname, verbose = TRUE)

Arguments

sciname
character; scientific name.
verbose
logical; If TRUE the actual taxon queried is printed on the console.

Value

UID for the supplied species names. NA for non-matching names.

Description

A function to retrieve the UID-Code (Unique Identifier) of a species from NCBI taxonomy browser.

Examples

get_uid(c("Chironomus riparius", "Chaetopteryx"))
Retrieving data for species ' Chironomus riparius ' Retrieving data for species ' Chaetopteryx '
[1] "315576" "492549" attr(,"class") [1] "uid"
get_uid(c("Chironomus riparius", "aaa vva"))
Retrieving data for species ' Chironomus riparius ' Retrieving data for species ' aaa vva '
[1] "315576" NA attr(,"class") [1] "uid"

Author

Eduard Szoecs szoe8822@uni-landau.de