View source: R/getPubchemFromName.R
getPubchemFromName | R Documentation |
Get PubChem CID value from a name using PubChem PUG API
getPubchemFromName(id, forceFirst = FALSE, debug = TRUE, cachePath = NULL)
id |
a name |
forceFirst |
a boolean, if multiple entries are returned grab the first? |
debug |
a boolean, print debug information? (Default: TRUE) |
cachePath |
path for cache files |
a PubChem CID or NA, otherwise
Augustin Luna (augustin@mail.nih.gov)
getPubchemFromNsc("trichostatin a") #Should be: 444732
getPubchemFromNsc("aspirin") #Should be: 2244
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.