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 uniquesrcandsercombinations. Ifsrcis a valid source identifier, then all accessible products (resolutions and versions) of a series are shown.- datadir
characterDirectory 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 defaultNULLoption will download data to a temporary directory that exists only until the R session ends.- verbose
logicalShould console feedback during download be displayed?- master
logicalWhensrcisNULL, should the function download the master records file?- greetings
logicalWhen 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
logicalWhen set toFALSE(default), only those items are shown that are available for the R environment. Set toTRUEto 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"))
