Drugs: Drugs

Description Usage Arguments Value Examples

View source: R/Data.R

Description

This function creates a data table with the drug candidates extracted from MEDLINE

Usage

1
Drugs(drug_filename, classLevel = FALSE)

Arguments

drug_filename

The name of the flat file containing the drug specific information extracted from MEDLINE

classLevel

If TRUE, represent drugs at the drug class level, e.g. "bupivacaine" as "amides"

Value

An object containing for drug candidates: names, ATC codes, and MEDLINE Ids for papers mentioning the drugs potentially in the context of adverse events

Examples

1
2
3
4
5
6
7
8
{

   drugs <- Drugs("drugs_ATC_MEDLINE_360k.txt")
   
   #will return the PubMed IDs for the 758 papers in MEDLINE mentioning the drug bupivacaine together with an adverse event
   drugs[name=="bupivacaine",]$PMID
    
} 

winnenbr/GEA documentation built on May 4, 2019, 6:32 a.m.