Skip to contents

Get Taxomony Source File

Usage

retrieve_ark(year = NULL, code = NULL, which = c("wide", "long"))

Arguments

year

<int> year of source file release; options are 2009:2024

code

<chr> Taxonomy code

which

<chr> wide or long version of the taxonomy; options are wide or long

Value

<tibble> of search results

Examples

retrieve_ark(year = 2024, code = "101Y00000X", which = "wide")
#> # A tibble: 2 × 13
#>    year version code       display_name section    grouping       classification
#>   <dbl>   <int> <chr>      <chr>        <chr>      <chr>          <chr>         
#> 1  2024       0 101Y00000X Counselor    Individual Behavioral He… Counselor     
#> 2  2024       1 101Y00000X Counselor    Individual Behavioral He… Counselor     
#> # ℹ 6 more variables: specialization <chr>, definition <chr>, notes <chr>,
#> #   modified <date>, effective <date>, deactivated <date>

retrieve_ark(year = 2024, code = "101Y00000X", which = "long")
#> # A tibble: 3 × 6
#>    year code       level               description                nlevels nyears
#>   <dbl> <chr>      <ord>               <chr>                        <int>  <int>
#> 1  2024 101Y00000X I. Section          Individual                       3      3
#> 2  2024 101Y00000X II. Grouping        Behavioral Health & Socia…       3     15
#> 3  2024 101Y00000X III. Classification Counselor                        3     15