tstp_getdval: tstp_getdval

Description Usage Arguments Details Value Author(s)

Description

Gets aggregated values of a specified interval

Usage

1
2
tstp_getdval(con, tsid, ib, aus, from = NULL, to = NULL, verbose = FALSE,
  debug = FALSE)

Arguments

con

A tstp_connection object.

tsid

The timeseries ID.

ib

Specifies the interval width (e.g., 5s, 30min, 1h, 7d, 1mon, 1a, ...)

aus

Specifies the way values are consolidated (Sum, Mit, Min, Max, DMax, DMin, Lck)

from

Specifies the first date (%Y-%m-%d).

to

Specifies the last date (%Y-%m-%d).

verbose

logical. Provide additional details?

debug

logical. For debugging purposes only.

Details

A TSID, a time interval with Von=<point in time> and Bis=<point in time>, an interval width with IB=<interval range> (e.g., 5s, 30min, 1h, 7d, 1mon, 1a, ...), an interpretation with Aussage=<interpretation> (e.g. Mit(mean) - see chart 3 in appendix A) and optionally a quality layer with Qual=[0..50] are submitted. A time series with corresponding values (interval values, continuous values or momentary values) is returned for the time interval as binary block (see GET). The selected interval width IB defines the attributes time step factor and time step for the returned series.

Value

A time series as an xts object.

Author(s)

Dominik Leutnant


dleutnant/tstpr documentation built on May 15, 2019, 9:18 a.m.