Last data update: 2014.03.03

R: Get ETOX ID
get_etoxidR Documentation

Get ETOX ID

Description

Query ETOX: Information System Ecotoxicology and Environmental Quality Targets https://webetox.uba.de/webETOX/index.do for their substance ID

Usage

get_etoxid(query, match = c("best", "all", "first", "ask", "na"),
  verbose = TRUE)

Arguments

query

character; The searchterm

match

character; How should multiple hits be handeled? 'all' returns all matched IDs, 'first' only the first match, 'best' the best matching (by name) ID, 'ask' is a interactive mode and the user is asked for input, 'na' returns NA if multiple hits are found.

verbose

logical; print message during processing to console?

Value

if match = 'all' a list with etoxids, otherwise a dataframe with 4 columns: etoxID, matched substance, string distance to match and the queried string

Note

Before using this function, please read the disclaimer https://webetox.uba.de/webETOX/disclaimer.do.

Author(s)

Eduard Szoecs, eduardszoecs@gmail.com

See Also

etox_basic for basic information, etox_targets for quality targets and etox_tests for test results.

Examples

## Not run: 
# might fail if API is not available
get_etoxid('Triclosan')
# multiple inputs
comps <- c('Triclosan', 'Glyphosate', 'xxxx')
get_etoxid(comps)
get_etoxid(comps, match = 'all')

## End(Not run)

Results