filterApprovedDrugs | R Documentation |
Filter a given list of drug names for having an ATC code, if not they are dropped
filterApprovedDrugs(druglist, atchashda)
druglist |
a list of drug names |
atchashda |
a hash containing the drug names as keys |
approveddrugs a hash filtered for having an ATC code
utils::data(rawDrugNamesCoOcEpSO, package="epos")
atchashda <-
readAtcMapIntoHashMapDrugNamesAtcCodes(
system.file("extdata", "db-atc.map", package = "epos"), "\t")
tepso <- genDictListFromRawFreq(rawDrugNamesCoOcEpSO)
filterApprovedDrugs(tepso, atchashda)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.