getDF: getDF

Description Usage Arguments Value Examples

Description

get the dataset of incertitudes for the data selected

Usage

1
2
3
getDF(varURI, token, smoothing = FALSE, sensor = NULL,
  endDate = NULL, startDate = NULL,
  wsUrl = "www.opensilex.org/openSilexAPI/rest/")

Arguments

varURI

uri of the variable to plot, from the variableList function or the web service directly

token

a token from getToken function

smoothing

logical, smoothing of the data, returns the incertitudes from the smoothing

sensor

character, uri of a sensor to filter with

endDate

date, date from which to filter data, format "%Y-%m-%dT%H:%M:%S"

startDate

date, date to which filter the data, format "%Y-%m-%dT%H:%M:%S"

wsUrl

url of the webservice

Value

data.frame

Examples

1
2
3
4
5
6
7
initializeClientConnection(apiID="ws_private", url = "www.opensilex.org/openSilexAPI/rest/")
aToken <- getToken("guest@opensilex.org","guest")
token <- aToken$data
vars <- variableList(token = token, wsUrl = "www.opensilex.org/openSilexAPI/rest/")
vars
getDF(token = token, varURI = list("http://www.opensilex.org/demo/id/variables/v004",
                                         "http://www.opensilex.org/demo/id/variables/v007"))

niio972/variablesStudy documentation built on May 3, 2019, 3:21 p.m.