Skip to content

Commit

Permalink
made placeholder for int folder, adjusted file path for new ILO data …
Browse files Browse the repository at this point in the history
…in livelihood_dataprep
  • Loading branch information
annaramji committed Jul 2, 2024
1 parent 853181b commit 5de05a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file.
6 changes: 3 additions & 3 deletions globalprep/le/v2024/livelihood_dataprep.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ wage_data_clean <- ilo_wage_data %>%
# set column name to year
rename(year = time) %>%
# filter to the cap date range from the jobs data -- 2019
filter(year %in% c(2014:2019)) %>%
filter(year %in% c(2009:2019)) %>%
# add iso3 column, tourism sector label
mutate(iso3 = country_regex_to_iso3c(ref_area_label),
sector = "tour") %>%
Expand All @@ -239,7 +239,7 @@ wage_data_clean <- ilo_wage_data %>%
years_df <- tibble(iso3 = wage_data_clean$iso3) %>%
group_by(iso3) %>%
summarize(year = seq(2014, 2019))
summarize(year = seq(2009, 2019))
wage_data_years <- left_join(years_df, wage_data_clean, by = c("iso3", "year"))
Expand Down Expand Up @@ -308,7 +308,7 @@ paste0("proportion of countries/regions with only 1 data point: ", round(((num_n
```{r}
# preliminary plot
line_plot <- plotly::plot_ly(wage_gf, x = ~year, y = ~appx_wage_fill, color = ~ref_area_label, type = "scatter", mode = "lines") %>%
layout(title = "All Regions: monthly Service Wages (USD)",
layout(title = "All Regions: monthly Service Wages (USD (2017) PPP-Adjusted)",
xaxis = list(title = "Year"),
yaxis = list(title = "monthly Wages (USD)"))
Expand Down

0 comments on commit 5de05a4

Please sign in to comment.