GetPubNames: Get drug synonyms from PubChem

View source: R/api_pubchem.R

GetPubNamesR Documentation

Get drug synonyms from PubChem

Description

GetPubNames queries PubChem database with drug CIDs via (PUG REST to searching for synonyms of drug.

Usage

GetPubNames(cids, quiet = TRUE)

Arguments

cids

A vector of characters or integers containing CID of drugs for searching.

quiet

A logical value. If it is TRUE the message for function progress will be shutted down.

Value

A Data frame contains:

  • cid Inputted CIDs.

  • name The first name in the synonyms list retrieved from PubChem.

  • synonyms Synonyms retrieved from PubChem

Author(s)

Jing Tang jing.tang@helsinki.fi Shuyu Zheng shuyu.zheng@helsinki.fi

Examples

GetPubNames("2244")

DrugComb/TidyComb documentation built on June 22, 2022, 2:49 a.m.