The function will download a list of available series from the data repository
Usage
datasets(
src = NULL,
datadir = NULL,
verbose = FALSE,
master = FALSE,
greetings = TRUE,
all = FALSE
)
Arguments
- src
character
. Source identifier. If this is set toNULL
, then a simplified list of availables series will be downloaded, including all uniquesrc
andser
combinations. Ifsrc
is a valid source identifier, then all accessible products (resolutions and versions) of a series are shown.- datadir
character
Directory where the downloaded files are kept. Individual entries will be looked up from the directory if this is given, and will be downloaded if they are not found. The defaultNULL
option will download data to a temporary directory that exists only until the R session ends.- verbose
logical
Should console feedback during download be displayed?- master
logical
Whensrc
isNULL
, should the function download the master records file?- greetings
logical
When the function is invoked without arguments, it displays a message to keep new users informed about different versions and resolutions (even withverbose=FALSE
). This argument turns this message off on demand.- all
logical
When set toFALSE
(default), only those items are shown that are available for the R environment. Set toTRUE
to see all items.
Examples
# available datasets (sources and series) - proper
# index <- datasets()
# all available versions and resolutions in database 'pbdb'
# oneDat <- datasets(src="pbdb")
###################################
# local example INCOMPLETE - does not connect to the internet
ind <- datasets(
datadir=system.file("extdata", package="chronosphere"))
#> Use datasets(src = <src>) to see available versions and resolutions.
# one available archive
ind <- datasets(
src="SOM-zaffos-fragmentation",
datadir=system.file("extdata", package="chronosphere"))