CheckDrug: Check whether input drugs are archived in DrugComb

View source: R/check_drugcomb.R

CheckDrugR Documentation

Check whether input drugs are archived in DrugComb

Description

Function CheckDrug compares drug CIDs passed to cids argument with CIDs archived in DrugComb (extracted to drugcomb R data). It will return the total number of drugs have been archived in DrugComb as well as which drugs are already or not yet archived in DrugComb.

Usage

CheckDrug(cids)

Arguments

cids

A character vector. It contains CIDs of drugs which would be checked.

Value

A list contains 3 elements:

  • n: It indicates that there are totally n drugs archived in DrugComb database.

  • old: It lists the CIDs of drugs that have been archived in DrugComb.

  • new: It lists the CIDs of drugs that are not yet in DrugComb.

Author(s)

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


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