open a reference to omop concept ancestor file from provided location
Source:R/omop_concept_ancestor.R
omop_concept_ancestor.Rd
defaults to package cache used by omop_vocab_table_save()
Usage
omop_concept_ancestor(
location = tools::R_user_dir("omopcept", which = "cache")
)
oca(location = tools::R_user_dir("omopcept", which = "cache"))
Examples
# open reference, query and collect data to dataframe
omop_concept_ancestor() |> head() |> dplyr::collect()
#> # A tibble: 6 × 4
#> ancestor_concept_id descendant_concept_id min_levels_of_separation
#> * <int> <int> <int>
#> 1 375415 4335743 4
#> 2 735979 41070383 3
#> 3 529411 43269406 3
#> 4 141960 200164 3
#> 5 438112 42514191 3
#> 6 434881 36520026 1
#> # ℹ 1 more variable: max_levels_of_separation <int>
oca() |> head() |> dplyr::collect()
#> # A tibble: 6 × 4
#> ancestor_concept_id descendant_concept_id min_levels_of_separation
#> * <int> <int> <int>
#> 1 375415 4335743 4
#> 2 735979 41070383 3
#> 3 529411 43269406 3
#> 4 141960 200164 3
#> 5 438112 42514191 3
#> 6 434881 36520026 1
#> # ℹ 1 more variable: max_levels_of_separation <int>