Skip to content

Commit

Permalink
Added 2019-2023 data for parents
Browse files Browse the repository at this point in the history
  • Loading branch information
jjchern committed Feb 19, 2024
1 parent 12bd308 commit f79b11a
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 85 deletions.
2 changes: 1 addition & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @source [Medicaid Income Eligibility Limits for Parents, 2002-2018](https://www.kff.org/medicaid/state-indicator/medicaid-income-eligibility-limits-for-parents/)
"parents"

#' Medicaid Income Eligibility Limits for Childless Adults, 2011-2018
#' Medicaid Income Eligibility Limits for Childless Adults, 2011-2023
#'
#' @source [Medicaid Income Eligibility Limits for Other Non-Disabled Adults, 2011-2018](https://www.kff.org/medicaid/state-indicator/medicaid-income-eligibility-limits-for-other-non-disabled-adults/)
"childless_adults"
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The R package `melig` contains information on **M**edicaid income **elig**ibilit
- [Medicaid/CHIP Upper Income Eligibility Limits for Children, 2000-2018](https://www.kff.org/medicaid/state-indicator/medicaidchip-upper-income-eligibility-limits-for-children/)

- `prenant_wom.rda`: [Medicaid and CHIP Income Eligibility Limits for Pregnant Women, 2003-2023](https://www.kff.org/medicaid/state-indicator/medicaid-and-chip-income-eligibility-limits-for-pregnant-women/)
- `parents.rda`: [Medicaid Income Eligibility Limits for Parents, 2002-2018](https://www.kff.org/medicaid/state-indicator/medicaid-income-eligibility-limits-for-parents/)
- `parents.rda`: [Medicaid Income Eligibility Limits for Parents, 2002-2023](https://www.kff.org/medicaid/state-indicator/medicaid-income-eligibility-limits-for-parents/)
- `childless_adults.rda`: [Medicaid Income Eligibility Limits for Other Non-Disabled Adults, 2011-2018](https://www.kff.org/medicaid/state-indicator/medicaid-income-eligibility-limits-for-other-non-disabled-adults/)

The datasets are stored in tidy format (long table).
Expand Down
5 changes: 2 additions & 3 deletions data-raw/parents.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

library(tidyverse)

read_csv("data-raw/parents.csv", skip = 2) %>%
read_csv("data-raw/parents.csv", skip = 2, n_max = 52) %>%
select(-Footnotes) %>%
filter(Location != "United States") %>%
rename(state = Location) %>%
inner_join(fips::fips, by = "state") %>%
left_join(fips::fips, by = "state") %>%
select(state, fips, usps, everything()) %>%
gather(year, cutoff, -state:-usps) %>%
separate(year, c("month", "year")) %>%
Expand Down
Loading

0 comments on commit f79b11a

Please sign in to comment.