srs_query | R Documentation |
Get record details from SRS, see https://cdxnodengn.epa.gov/cdx-srs-rest/
srs_query(
query,
from = c("itn", "cas", "epaid", "tsn", "name"),
verbose = getOption("verbose"),
...
)
query |
character; query ID. |
from |
character; type of query ID, e.g. |
verbose |
logical; should a verbose output be printed on the console? |
... |
not currently used. |
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
## Not run:
# 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')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.