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

adding spatial libraries and fixing small summing problem

parent 463e215f
Branches
No related tags found
No related merge requests found
...@@ -13,7 +13,10 @@ library(foreach) ...@@ -13,7 +13,10 @@ library(foreach)
library(doParallel) library(doParallel)
library(reshape2) library(reshape2)
library(dplyr) library(dplyr)
library(rgdal)
library(sp)
library(rgeos)
library(raster)
cl <- makeForkCluster(outfile = "") cl <- makeForkCluster(outfile = "")
registerDoParallel(cl) registerDoParallel(cl)
...@@ -145,7 +148,7 @@ print(paste(Sys.time(), "range predicted for ", year_to_predict, ...@@ -145,7 +148,7 @@ print(paste(Sys.time(), "range predicted for ", year_to_predict,
print(paste(Sys.time(), "density predicted for ", year_to_predict, print(paste(Sys.time(), "density predicted for ", year_to_predict,
mean(pred_per_cell$abundance_pred))) mean(pred_per_cell$abundance_pred)))
print(paste(Sys.time(), "nr of values over 10 ", year_to_predict, print(paste(Sys.time(), "nr of values over 10 ", year_to_predict,
sum(pred_per_cell$abundance_pred) > 10)) sum(pred_per_cell$abundance_pred > 10)))
saveRDS(pred_per_cell, saveRDS(pred_per_cell,
file = file.path(outdir, file = file.path(outdir,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment