compile_processed_data: Compile Input Layers

compile_processed_dataR Documentation

Compile Input Layers

Description

Compiles the available processed layers and copy them to a new folder called zToAccessMod to facilitate the further import into AccessMod

Usage

compile_processed_data(mainPath, location, mostRecent = TRUE)

Arguments

mainPath

character; the parent directory of the location folder

location

character; the location folder name

mostRecent

logical; should the most recent 'processed' input be selected? If FALSE and if there are multiple available 'processed' inputs, the user is interactively asked to select the 'processed' input based on file creation time.

Examples

# Replace workDir with the actual path to your working directory
## Not run: 
mainPath <- "workDir"
initiate_project(mainPath)
## End(Not run)

# Replace myLocation with the location name you are working on (workDir subfolder)
## Not run: 
location <- "myLocation"
download_boundaries(mainPath, location, adminLevel = 1, type = "gbOpen", alwaysDownload = TRUE)
set_projection(mainPath, location, mostRecent = TRUE, alwaysSet = TRUE, bestCRS = TRUE)
download_landcover(mainPath, location, alwaysDownload = TRUE, mostRecent = TRUE)
download_population(mainPath, location, alwaysDownload = TRUE)
download_dem(mainPath, location, alwaysDownload = TRUE, mostRecent = TRUE)
download_osm(mainPath, location, type = "roads", alwaysDownload = TRUE, mostRecent = NULL, defaultClasses = TRUE)
download_osm(mainPath, location, type = "waterLines", alwaysDownload = TRUE, mostRecent = NULL, defaultClasses = TRUE)
download_osm(mainPath, location, type = "waterPolygons", alwaysDownload = TRUE, mostRecent = NULL, defaultClasses = TRUE)
process_inputs(mainPath, location, selectedInputs = "All", mostRecent = TRUE, alwaysProcess = TRUE, defaultMethods = TRUE, changeRes = FALSE, popCorrection = TRUE, gridRes = 3000)
compile_processed_data(mainPath, location, mostRecent = TRUE)
## End(Not run)

ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.