Learn R Programming

epos (version 1.1)

filterNeuroDrugs: Filter a given list of drug names for having an ATC code starting with N indicating to be a drug for the Nervous System

Description

Filter a given list of drug names for having an ATC code starting with N indicating to be a drug for the Nervous System

Usage

filterNeuroDrugs(druglist, atchashda)

Value

neurodrugs a hash filtered for having an ATC code starting with N

Arguments

druglist

a list of drug names

atchashda

a hash containing the drug names as keys

Examples

Run this code
utils::data(rawDrugNamesCoOcEpSO, package="epos")
atchashda <-
  readAtcMapIntoHashMapDrugNamesAtcCodes(
  system.file("extdata", "db-atc.map", package = "epos"), "\t")
tepso <- genDictListFromRawFreq(rawDrugNamesCoOcEpSO)
nepso <- filterNeuroDrugs(tepso, atchashda)

Run the code above in your browser using DataLab