View source: R/downloadDatabaseToFiles.R
downloadDatabaseToFiles | R Documentation |
Downloads annual NMD data from the API and writes them as MonetDB database
downloadDatabaseToFiles(
years,
dest,
method = "compare",
save = c("xml", "rds"),
icesAreas = icesAreas,
cruiseSeries = cruiseSeries,
gearCodes = gearCodes
)
years |
Vector of integers specifying the years to be downloaded. The database reaches 1914:year(Sys.Date()) |
dest |
Character string specifying the file path where the database should be downloaded to. |
method , save |
Switches that do not make much sense at the moment. Leave them as they are. |
icesAreas |
ICES area shape |
cruiseSeries |
a data.table object of NMD cruise series list. Used to identify cruise series of a specific mission. See |
gearCodes |
a data.table object of NMD gear code list. Used to make gearname and gearcategory columns. See |
This function is scarily powerful. Do not run a large number of years unless you think you know what you are doing
Ibrahim Umar, Mikko Vihtakari (Institute of Marine Research)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.