Skip to content

Commit

Permalink
Update ua-pop-2022.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Tytser committed Sep 2, 2022
1 parent 88128e7 commit 5f32afc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions analysis/ua-pop-2022/ua-pop-2022.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,12 @@ Sys.setlocale("LC_CTYPE", "ukr")
prints_folder <- paste0("./analysis/ua-pop-2022/prints/")
if (!fs::dir_exists(prints_folder)) { fs::dir_create(prints_folder) }

path_data_input <- "./data-private/raw/ua-pop-2022.xlsx"
path_data_input <- "./data-public/derived/ua-pop-2022.csv"
# ---- declare-functions -------------------------------------------------------

# ---- load-data ---------------------------------------------------------------
ds0 <- readxl::read_xlsx(
path_data_input
, sheet = "12-47"
, skip = 5
, col_names = c("unit_ua","pop_count","unit_en" )
)
ds0 <- readr::read_csv(path_data_input)

ds0 %>% glimpse()
ds0
# ---- inspect-data ------------------------------------------------------------
Expand Down

0 comments on commit 5f32afc

Please sign in to comment.