tstp_get: tstp_get

Description Usage Arguments Details Value Author(s) See Also

Description

Gets time series data from the tstp server

Usage

1
2
tstp_get(con, tsid, from = NULL, to = NULL, qual = 1, type = "asc",
  verbose = TRUE, debug = FALSE, pm = FALSE)

Arguments

con

A tstp_connection object.

tsid

The timeseries ID.

from

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

to

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

qual

Sets the level of quality

type

Determines the way data are transmitted ('asc' or 'bin').

verbose

logical. Provide additional details?

debug

logical. For debugging purposes only.

pm

logical. For performance meausurement only.

Details

Gets time series data from the tstp server (datetime-value pairs). Use GETCOMBO to get texts (datetime-string pairs). A time series is requested by passing a TSID argument. In addition, a time interval with Von=<Point in time> and Bis=<Point in time> (from and to) must be specified, optionally a quality level with Qual=[0..47] can be specified. The highest quality level used is selected as default. A Base64 encoded binary block containing the list of the datetime-value pairs is delivered. 'Time reference', 'type of series' and 'unit' are written as XML attributes of the DEF element. Alternatively, the transmission can be carried out as ASCII which is selected via the parameter type=asc.

Value

A time series as an xts object.

Author(s)

Dominik Leutnant

See Also

xts


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