Skip to content
Snippets Groups Projects
Commit e37d8ca0 authored by Maria Voigt's avatar Maria Voigt
Browse files

fixing the loading of geography to once

parent 24d0cfe3
No related branches found
No related tags found
No related merge requests found
......@@ -304,13 +304,10 @@ saveRDS(pred_per_cell,
#-----------------------#
if(is_verbose){print(paste(Sys.time(), "3. Start making map"))}
geography_grid_path <- path.to.current(indir_predictors,
paste0("geography_", year_to_predict), "rds")
geography_grid <- readRDS(geography_grid_path)
geography_grid_for_join <- dplyr::select(geography_grid, id, x_start, y_start)
geography_for_join <- dplyr::select(geography, id, x_start, y_start)
pred_per_cell_sp <- left_join(geography_grid_for_join,
pred_per_cell_sp <- left_join(geography_for_join,
pred_per_cell, by = "id") %>%
as.data.frame()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment