mapCompound2CID: Map compound names to PubChem CIDs

View source: R/pubchem_rest.R

mapCompound2CIDR Documentation

Map compound names to PubChem CIDs

Description

This function maps compound names to PubChem CIDs using the PubChem REST API.

Usage

mapCompound2CID(names, first = FALSE, ...)

Arguments

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.

Value

A character vector of PubChem CIDs.

Examples

mapCompound2CID(c("aspirin", "caffeine"))


bhklab/AnnotationGx documentation built on April 3, 2025, 4:27 p.m.