pubchemName2CID {ChemmineR} | R Documentation

## Translate compound name to pubchem compound id

### Description

Takes any compound name and queries pubchem to find its pubchem id (CID).

### Usage

    pubchemName2CID(name)

### Arguments

`name` | Any compound name, used to query pubchem to find the compound.

### Value

The result is the pubchem compound id. If the name is not found, NA will be returned.

### Author(s)

Kevin Horan

### References

PubChem PUG REST: https://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST_Tutorial.html

### Examples

    ## Not run:
    ## fetch 2 compounds from PubChem
    cid <- pubchemName2CID("CHEMBL460363")

    ## End(Not run)

[Package ChemmineR version 3.40.0 Index]