Skip to content

Commit

Permalink
Added code to create rda file
Browse files Browse the repository at this point in the history
  • Loading branch information
Lextuga007 committed Oct 17, 2024
1 parent ef766fc commit a00500a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data-raw/ons-mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -407,3 +407,5 @@ ons_mortality %>%
slice(1)

unlink("working_files", recursive = TRUE)

usethis::use_data(ons_mortality, overwrite = TRUE)
4 changes: 3 additions & 1 deletion data-raw/ons_uk_population_2023.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ population_data_2023_m <- population_data_2023_m |>
select(!`All ages`) |>
pivot_longer(`0`:`90+`, names_to = "age", values_to = "count")

population_data_combined <- bind_rows(
ons_uk_population_2023 <- bind_rows(
females = population_data_2023_f,
males = population_data_2023_m,
.id = "sex"
)

usethis::use_data(ons_uk_population_2023, overwrite = TRUE)

0 comments on commit a00500a

Please sign in to comment.