Learn R Programming

webchem (version 0.0.4.0)

ppdb: Query the ppdb for information

Description

This function queries the PPDB http://sitem.herts.ac.uk/aeru/iupac/search.htm for information.

Usage

ppdb(cas, verbose = TRUE, index = NULL)

Arguments

cas
character; CAS number to query.
verbose
logical; print message during processing to console?
index
A index object, as created by ppdb_buildidx. If NULL (default), the index shipped with webchem is used ppdb_idx.

Value

  • A list of 10 data.frames : ec_regulation, approved_in, general, parents, fate, deg, soil, metab, etox and names.

    See also http://sitem.herts.ac.uk/aeru/iupac/docs/Background_and_Support.pdf for more information on the data

Examples

Run this code
# might fail if Server is not available
gly <- ppdb('1071-83-6')
gly$approved_in

# handle multiple CAS
 cas <- c('1071-83-6', '50-00-0')

Run the code above in your browser using DataLab