summariseAchillesCodeUse: Summarise code use from achilles counts

View source: R/summariseAchillesCodeUse.R

summariseAchillesCodeUseR Documentation

Summarise code use from achilles counts

Description

Summarise code use from achilles counts

Usage

summariseAchillesCodeUse(
  x,
  cdm,
  countBy = c("record", "person"),
  minCellCount = lifecycle::deprecated()
)

Arguments

x

Codelist

cdm

cdm_reference via CDMConnector::cdm_from_con()

countBy

Either "record" for record-level counts or "person" for person-level counts

minCellCount

⁠\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}}⁠

Value

A tibble with results

Examples


cdm <- mockVocabRef("database")
oa <- getCandidateCodes(cdm = cdm, keywords = "osteoarthritis")
result_achilles <- summariseAchillesCodeUse(list(oa = oa$concept_id), cdm = cdm)
result_achilles
CDMConnector::cdmDisconnect(cdm)


CodelistGenerator documentation built on Oct. 17, 2024, 5:09 p.m.