dB_updatedb: update SQLite database

Description Usage Arguments Value Author(s)

View source: R/dB_updatedb.R

Description

Writing / Updating SQLite database which is used for downloading data with the SWC calibration tool (shiny app).

Usage

1
dB_updatedb(stations, variables, path2data, inCloud, write.csv, return_data)

Arguments

stations

character vector, station to update, e.g. c("B0001", "B0002", "B0003")

variables

character, which variables to read, e.g "TOTAL" for unqueried data set, "METEO" for meteorological data, "SWC" for soil moisture, "TSoil" for soil temperature

inCloud

character, path where database is stored, if NULL database will be stored in package directory of SMCcalibration where it is needed for plugging in the calibration tool, default: ownCloud directory data, download link.

write.csv

boolean, if TRUE data is written in .csv files station wise, default: FALSE

return_data

boolean, if TRUE data is returned, default: TRUE

Value

List containing time series zoo objects; names as argument stations

SQLite data base in the inCloud folder; if write.csv is TRUE, station wise .csv files (pretty format, to read with readr::read_csv or data.table::fread)

Author(s)

Johannes Brenner, [email protected]


JBrenn/DataBaseAlpEnvEURAC documentation built on June 23, 2017, 11:31 p.m.