View source: R/summariseAchillesCodeUse.R
| summariseAchillesCodeUse | R Documentation |
Summarise code use from achilles counts.
summariseAchillesCodeUse(x, cdm, countBy = c("record", "person"))
x |
A codelist. |
cdm |
A cdm reference to an OMOP CDM dataset. If data is held within a database, the vocabulary tables should be in the same schema as the clinical tables (person, observation period, and so on). |
countBy |
Either "record" for record-level counts or "person" for person-level counts. |
A tibble with summarised counts.
library(CodelistGenerator)
cdm <- mockVocabRef("database")
oa <- getCandidateCodes(cdm = cdm, keywords = "osteoarthritis")
codelist <- omopgenerics::newCodelist(list(oa = oa$concept_id))
result_achilles <- summariseAchillesCodeUse(codelist, cdm = cdm)
result_achilles
CDMConnector::cdmDisconnect(cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.