Last data update: 2014.03.03
R: Query http://www.alanwood.net/pesticides
Query http://www.alanwood.net/pesticides
Description
Query Alan Woods Compendium of Pesticide Common Names http://www.alanwood.net/pesticides
Usage
aw_query(query, type = c("commonname", "cas"), verbose = TRUE, idx = NULL)
Arguments
query
character; search string
type
character; type of input ('cas' or 'commonname')
verbose
logical; print message during processing to console?
idx
data.frame; index to use. If NULL (default) the internal index aw_idx
is used.
To rebuild the index use build_aw_idx
.
Value
A list of eight entries: common-name, status, preferredd IUPAC Name,
IUPAC Name, cas, formula, activity, subactivity, inchikey, inchi and source url.
Note
for type = 'cas' only the first matched link is returned.
Please respect Copyright, Terms and Conditions http://www.alanwood.net/pesticides/legal.html !
Author(s)
Eduard Szoecs, eduardszoecs@gmail.com
Examples
## Not run:
aw_query('Fluazinam', type = 'commonname')
out <- aw_query(c('Fluazinam', 'Diclofop'), type = 'com')
out
# extract subactivity from object
sapply(out, function(y) y$subactivity[1])
# use CAS-numbers
aw_query("79622-59-6", type = 'cas')
## End(Not run)
Results