load_data() can be used to quickly load input data (e.g. subnational statistics, maps and mappings). This can be useful to quickly inspect the statistics or visualize a map. Data can only be loaded after the create_spam_folders() has been run and data has been created by running pre-processing steps. See details for allowed input.

load_data(data, param, local = FALSE, mess = TRUE)

Arguments

data

character vector that refers to the data that is loaded. See details for allowed input.

param

Object of type spam_par that bundles all SPAM parameters, including core model folders, alpha-3 country code, year, spatial resolution, most detailed level at which subnational statistics are available, administrative unit level at which the model is solved and type of model.

local

logical; should the data be loaded into the global (TRUE) or local environment (`FALSE). Loading data into the local environment is only relevant when the function is used in internal package functions.

mess

logical; should a message be printed to the screen that indicates which dataset is loaded?

Details

The following inputs are allowed:

  • adm_list:

  • adm_map:

  • adm_map_r:

  • cl_med:

  • cl_max:

  • cl_rank:

  • ia_max:

  • ia_rank:

  • gaez2crop:

  • gaez_replace:

  • grid:

  • gia:

  • gmia:

  • pop:

  • acc:

  • urb:

  • simu:

  • simu_r:

  • ha:

  • fs:

  • ci:

  • price:

  • dm2fm:

  • crop2globiom:

  • faostat2crop:

  • results: