srs_query: Get record details from U.S. EPA Substance Registry Servives...

Description Usage Arguments Value Examples

View source: R/srs.R

Description

Get record details from SRS, see https://cdxnodengn.epa.gov/cdx-srs-rest/

Usage

1
2
3
4
5
6
srs_query(
  query,
  from = c("itn", "cas", "epaid", "tsn", "name"),
  verbose = getOption("verbose"),
  ...
)

Arguments

query

character; query ID.

from

character; type of query ID, e.g. 'itn' , 'cas', 'epaid', 'tsn', 'name'.

verbose

logical; should a verbose output be printed on the console?

...

not currently used.

Value

a list of lists (for each supplied query): a list of 22. subsKey, internalTrackingNumber, systematicName, epaIdentificationNumber, currentCasNumber, currentTaxonomicSerialNumber, epaName, substanceType, categoryClass, kingdomCode, iupacName, pubChemId, molecularWeight, molecularFormula, inchiNotation, smilesNotation, classifications, characteristics, synonyms, casNumbers, taxonomicSerialNumbers, relationships

Examples

1
2
3
4
5
6
# might fail if API is not available
srs_query(query = '50-00-0', from = 'cas')

### multiple inputs
casrn <- c('50-00-0', '67-64-1')
srs_query(query = casrn, from = 'cas')

webchem documentation built on Dec. 11, 2021, 9:54 a.m.