View source: R/build_priogrid.R
calculate_pgvariables | R Documentation |
In PRIO-GRID, all functions that are named "gen_something()" are functions that return final variables as a SpatRaster (or a stack of these). This function calculates all variables and store them in "path/to/your/rawfolder/priogrid/version/variable_name.rds".
calculate_pgvariables(gen_functions = NULL, overwrite = FALSE)
gen_functions |
Character vector with priogrid functions starting with gen_. If NULL, then all are used. |
overwrite |
Boolean, if false, will ignore updating variables that already exist in the result folder |
calculate_pgvariables()
r <- readRDS(file.path(pgoptions$get_rawfolder(), "priogrid", packageVersion("priogrid"), "naturalearth_cover.rds"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.