filterNeuroDrugs: Filter a given list of drug names for having an ATC code...

Description Usage Arguments Value Examples

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

1
filterNeuroDrugs(druglist, atchashda)

Arguments

druglist

a list of drug names

atchashda

a hash containing the drug names as keys

Value

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

Examples

1
2
3
4
5
6
utils::data(rawDrugNamesCoOcEpSO, package="epos")
atchashda <-
  readAtcMapIntoHashMapDrugNamesAtcCodes(
  system.file("extdata", "db-atc.map", package = "epos"), "\t")
tepso <- genDictListFromRawFreq(rawDrugNamesCoOcEpSO)
nepso <- filterNeuroDrugs(tepso, atchashda)

epos documentation built on Feb. 20, 2021, 9:09 a.m.