Function to download and attach variables in the chronosphere
package
fetch(
dat,
var = NULL,
ver = NULL,
res = NULL,
datadir = NULL,
verbose = TRUE,
call = FALSE,
call.expr = FALSE,
...
)
(character
) The dataset to get variables from.
(character
) Vector of variable names to get.
(character
) The version of the variable. Defaults to NULL
, which will download the latest available version. We have to create a data table, which should be part of the package. This has to be searched for valid argument combinations. Right this is just a folder with a date.
(character
or numeric
) The resolution of raster layers. This has to be the same for all RasterLayers that make up the variable.
(character
) Directory where downloaded files are kept. Individual layers will be looked up from the directory if this is given, and will be downloaded if they are not found. The default NULL
option will download data to a temporary directory that exists only until the R session ends.
(logical
) Should console feedback during download be displayed?
(logical
) If set to TRUE
the function call is returned instead of the object.
(logical
) If call
is set to TRUE
, then should the call be returned as an expression
(TRUE
) or a message (FALSE
)?
Arguments passed to variable-specific loading functions.
An object that matches the 'type' field of the varibles in the output of the datasets
function.
Use the function datasets
to find available variables.
# NOT RUN {
a <- fetch(dat="paleomap", var="dem")
# }
Run the code above in your browser using DataLab