Skip to content

Commit

Permalink
Still testing gap filling
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin-duncan committed Jul 1, 2024
1 parent 7a80cea commit a316154
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions globalprep/le/v2024/Dustin_wb_service_dataprep.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ line_plot <- plot_ly(proportional_employement_nona, x = ~year, y = ~proportional
line_plot
htmlwidgets::saveWidget(line_plot, file = "proportional_jobs.html")
# htmlwidgets::saveWidget(line_plot, file = "proportional_jobs.html")
penona_pivot <- proportional_employement_nona %>%
Expand Down Expand Up @@ -220,9 +220,7 @@ country <- as.data.frame(unique(new_wage_data_ppp$ref_area.label))
countries = sample_n(country, size = 15)
countries = as.list(countries[,1])
test <- new_wage_data_ppp[new_wage_data_ppp$ref_area.label %in% countries, ]
test <- new_wage_data_ppp[new_wage_data_ppp$ref_area.label %in% countries[, 1], ]
range(new_wage_data$time) ## 2014-2024
length(unique(new_wage_data$ref_area.label)) ## 150 countries
Expand All @@ -231,6 +229,11 @@ ggplot(test, aes(x = time, y = monthly_wage, color = ref_area.label)) +
geom_point() +
geom_smooth(method = "lm") +
ylim(0, 10000)
years <- tibble(iso3 = as.character(region_names$eez_iso3)) %>%
group_by(iso3) %>%
mutate(year = seq(2014, 2019))
?na.approx
```


Expand Down

0 comments on commit a316154

Please sign in to comment.