get_taxonID: Retrieve taxonIDs from NaTron

Description Usage Arguments Value Examples

View source: R/get_taxon_ID.R

Description

This function macthes scientific species names against the NaTron taxa register and returns the corresponding taxonIDs (UUIDs).

Usage

1

Arguments

names

A vector of scientific species names. These should already be checked agains the NaTron taxa register to make sure they exist there.

conn

A connection object with NaTRON (see ?natron_connect)

Value

Returns a vector of UUIDs corresponding to the scientific species names given in the names argument.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# get some data:
data("setesdal")

# connect to the database
myConnection <- natron_connect("YOUR-USERNAME-HERE")

# Then get the taxonIDs inserted into the setesdal data:
setesdal$taxonID <- get_taxonID(
                    names = setesdal$scientificName,
                    conn = myConnection)


## End(Not run)

NTNU-VM/natronbatchupload documentation built on Oct. 12, 2019, 5:49 a.m.