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

adding more output and changing save in location

parent 1dcda2ae
No related branches found
No related tags found
No related merge requests found
...@@ -142,10 +142,11 @@ print(paste(Sys.time(), "sum predicted for ", year_to_predict, ...@@ -142,10 +142,11 @@ print(paste(Sys.time(), "sum predicted for ", year_to_predict,
sum(pred_per_cell$abundance_pred))) sum(pred_per_cell$abundance_pred)))
print(paste(Sys.time(), "range predicted for ", year_to_predict, print(paste(Sys.time(), "range predicted for ", year_to_predict,
range(pred_per_cell$abundance_pred))) range(pred_per_cell$abundance_pred)))
print(paste(Sys.time(), "density predicted for ", year_to_predict,
mean(pred_per_cell$abundance_pred)))
print(paste(Sys.time(), "nr of values over 10 ", year_to_predict,
sum(pred_per_cell$abundance_pred) > 10))
save.image(file.path(outdir, paste0("abundance_pred_image_", year_to_predict, "_",
Sys.Date(), ".RData")))
saveRDS(pred_per_cell, saveRDS(pred_per_cell,
file = file.path(outdir, file = file.path(outdir,
paste0("abundance_pred_per_cell_", paste0("abundance_pred_per_cell_",
...@@ -156,4 +157,4 @@ saveRDS(pred_per_cell, ...@@ -156,4 +157,4 @@ saveRDS(pred_per_cell,
print(paste(Sys.time(), "3. wrote results and done :-)")) print(paste(Sys.time(), "4. wrote results and done :-)"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment