mapCompound2CID | R Documentation |
This function maps compound names to PubChem CIDs using the PubChem REST API.
mapCompound2CID(names, first = FALSE, ...)
names |
A character vector of compound names. |
first |
Logical indicating whether to return only the first CID for each compound name (default is FALSE). |
... |
Additional arguments to be passed to the getPubchemCompound function. |
A character vector of PubChem CIDs.
mapCompound2CID(c("aspirin", "caffeine"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.