Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter Logic: beneficiary_enrollment() #4

Closed
andrewallenbruce opened this issue Apr 29, 2023 · 0 comments
Closed

Parameter Logic: beneficiary_enrollment() #4

andrewallenbruce opened this issue Apr 29, 2023 · 0 comments
Assignees
Milestone

Comments

@andrewallenbruce
Copy link
Owner

provider::beneficiary_enrollment(year = 2021, month = "Year", level = "State", fips = "10")
#> # A tibble: 1 × 26
#>    year month level state state_name county fips  bene_total bene_orig
#>   <int> <chr> <chr> <chr> <chr>      <chr>  <chr>      <int>     <int>
#> 1  2021 Year  State DE    Delaware   Total  10        222814    171134
#> # ℹ 17 more variables: bene_ma_oth <int>, bene_aged_total <int>,
#> #   bene_aged_esrd <int>, bene_aged_no_esrd <int>, bene_dsb_total <int>,
#> #   bene_dsb_esrd_and_only_esrd <int>, bene_dsb_no_esrd <int>,
#> #   bene_ab_total <int>, bene_ab_orig <int>, bene_ab_ma_oth <int>,
#> #   bene_rx_total <int>, bene_rx_pdp <int>, bene_rx_mapd <int>,
#> #   bene_rx_elig <int>, bene_rx_full <int>, bene_rx_part <int>,
#> #   bene_rx_none <int>

Created on 2023-04-28 with reprex v2.0.2

provider::beneficiary_enrollment(year = NULL, month = "Year", level = "County", state = "AL", county = "Autauga")
#> # A tibble: 10 × 26
#>     year month level  state state_name county  fips  bene_total bene_orig
#>    <int> <chr> <chr>  <chr> <chr>      <chr>   <chr>      <int>     <int>
#>  1  2013 Year  County AL    Alabama    Autauga 01001       9323      6484
#>  2  2014 Year  County AL    Alabama    Autauga 01001       9589      6565
#>  3  2015 Year  County AL    Alabama    Autauga 01001       9938      6711
#>  4  2016 Year  County AL    Alabama    Autauga 01001      10214      6799
#>  5  2017 Year  County AL    Alabama    Autauga 01001      10510      5784
#>  6  2018 Year  County AL    Alabama    Autauga 01001      10645      5700
#>  7  2019 Year  County AL    Alabama    Autauga 01001      11059      5761
#>  8  2020 Year  County AL    Alabama    Autauga 01001      11251      5596
#>  9  2021 Year  County AL    Alabama    Autauga 01001      11396      5338
#> 10  2022 Year  County AL    Alabama    Autauga 01001      11578      5186
#> # ℹ 17 more variables: bene_ma_oth <int>, bene_aged_total <int>,
#> #   bene_aged_esrd <int>, bene_aged_no_esrd <int>, bene_dsb_total <int>,
#> #   bene_dsb_esrd_and_only_esrd <int>, bene_dsb_no_esrd <int>,
#> #   bene_ab_total <int>, bene_ab_orig <int>, bene_ab_ma_oth <int>,
#> #   bene_rx_total <int>, bene_rx_pdp <int>, bene_rx_mapd <int>,
#> #   bene_rx_elig <int>, bene_rx_full <int>, bene_rx_part <int>,
#> #   bene_rx_none <int>

Created on 2023-04-28 with reprex v2.0.2

provider::beneficiary_enrollment(year = 2021, level = "County", state = "GA", month = NULL)
#> Warning: There were 6 warnings in `dplyr::mutate()`.
#> The first warning was:
#> ℹ In argument: `dplyr::across(dplyr::contains("bene"), as.integer)`.
#> Caused by warning:
#> ! NAs introduced by coercion
#> ℹ Run `dplyr::last_dplyr_warnings()` to see the 5 remaining warnings.
#> # A tibble: 2,067 × 26
#>     year month level  state state_name county   fips  bene_total bene_orig
#>    <int> <chr> <chr>  <chr> <chr>      <chr>    <chr>      <int>     <int>
#>  1  2021 Year  County GA    Georgia    Appling  13001       3919      1919
#>  2  2021 Year  County GA    Georgia    Atkinson 13003       1376       648
#>  3  2021 Year  County GA    Georgia    Bacon    13005       2229      1216
#>  4  2021 Year  County GA    Georgia    Baker    13007        715       291
#>  5  2021 Year  County GA    Georgia    Baldwin  13009       9167      4041
#>  6  2021 Year  County GA    Georgia    Banks    13011       3735      1865
#>  7  2021 Year  County GA    Georgia    Barrow   13013      13950      7096
#>  8  2021 Year  County GA    Georgia    Bartow   13015      19436     10107
#>  9  2021 Year  County GA    Georgia    Ben Hill 13017       3830      1816
#> 10  2021 Year  County GA    Georgia    Berrien  13019       3813      2127
#> # ℹ 2,057 more rows
#> # ℹ 17 more variables: bene_ma_oth <int>, bene_aged_total <int>,
#> #   bene_aged_esrd <int>, bene_aged_no_esrd <int>, bene_dsb_total <int>,
#> #   bene_dsb_esrd_and_only_esrd <int>, bene_dsb_no_esrd <int>,
#> #   bene_ab_total <int>, bene_ab_orig <int>, bene_ab_ma_oth <int>,
#> #   bene_rx_total <int>, bene_rx_pdp <int>, bene_rx_mapd <int>,
#> #   bene_rx_elig <int>, bene_rx_full <int>, bene_rx_part <int>, …

Created on 2023-04-28 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant