webchem (version 1.1.1)

aw_query: Query http://www.alanwood.net/pesticides/

Description

Query Alan Woods Compendium of Pesticide Common Names http://www.alanwood.net/pesticides/

Usage

aw_query(query, from = c("name", "cas"), verbose = TRUE, type, ...)

Arguments

query

character; search string

from

character; type of input ('cas' or 'name')

verbose

logical; print message during processing to console?

type

deprecated

...

additional arguments to internal utility functions

Value

A list of eight entries: common-name, status, preferred IUPAC Name, IUPAC Name, cas, formula, activity, subactivity, inchikey, inchi and source url.

References

Eduard Sz<U+00F6>cs, Tam<U+00E1>s Stirling, Eric R. Scott, Andreas Scharm<U+00FC>ller, Ralf B. Sch<U+00E4>fer (2020). webchem: An R Package to Retrieve Chemical Information from the Web. Journal of Statistical Software, 93(13). 10.18637/jss.v093.i13.

Examples

Run this code
# NOT RUN {
aw_query('Fluazinam', from = 'name')
out <- aw_query(c('Fluazinam', 'Diclofop'), from = 'name')
out
# extract subactivity from object
sapply(out, function(y) y$subactivity[1])

# use CAS-numbers
aw_query("79622-59-6", from = 'cas')
# }

Run the code above in your browser using DataLab