concept_names {omopr} | R Documentation |
This function accepts a (lazy) tibble and for each variable of the form
XXX_concept_id
adds a corresponding variable
XXX_concept_name
obtained by (left) joining against the
concept
table of the 'CDM'.
concept_names(tibl, names = NULL, cin = omopr.global$cin, verb = FALSE, fill = FALSE, copy = FALSE)
tibl |
A (lazy) reference to a tibble. |
names |
An optional list of |
cin |
A (lazy) reference to a vocabulary tibble with variables
|
verb |
If true, print progress to the console. |
fill |
If true, fill non-matching concept names with a string conversion of the concept ID. |
copy |
|
A named list with elements corresponding to dbplyr
lazy tibble references.
con = omopr:::dummy_con() # dummy connection to allow example to run tRefs = omopr_init(con) tRefs[["measurement"]] %>% concept_names()