View source: R/lwdataFunctions.R
getMvbData | R Documentation |
Retrieves the Meetnet Vlaams Banken (MVB) data from the LifeWatch project. Without valid credentials you are only allowed to view the "Tide TAW" parameter for the last 30 days, grouped by day/hour. To get an account, register via the Lifewatch RShiny registration webpage.
getMvbData(
startdate,
stopdate,
parameters,
stations = NULL,
by,
calc,
usr = NULL,
pwd = NULL,
params = FALSE,
...
)
startdate |
Starting date for the query. Without a login, this is restricted to the last month |
stopdate |
Stopping date for the query. Without a login, this is restricted to the last month |
parameters |
One (or list) of the |
stations |
List of stations to be included in the query. See |
by |
Time grouping for calculation, one of ('day','hour', '10min' ,'none') |
calc |
Calculation to perform given time grouping, one of ('avg', 'max', 'min', 'none'). |
usr |
Username to connect to database |
pwd |
Password to connect to database |
params |
If TRUE, returns a list with the dataset and the query parameters applied in the server side. IF FALSE returns only the data. |
... |
Reserved for internal use. |
Dataframe with the specified MVB data.
getMvbData(Sys.Date() - 30, Sys.Date() + 1, parameters = 'Tide TAW',
stations = "Nieuwpoort", by = "day", calc = "avg")
getMvbData(Sys.Date() - 30, Sys.Date() + 1, parameters = 'Tide TAW',
stations = "Blankenberge", by = "hour", calc = "max", params = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.