TSget {TSdbi}R Documentation

Get Time Series Data Using a Database Connection

Description

Get time series matrix structure from a database

Usage

    TSget(serIDs, con=options()$TSconnection,  ...)
    ## S4 method for signature 'character, missing':
    TSget(serIDs, con=options()$TSconnection,  ...)
    ## S4 method for signature 'character, ANY':
    TSget(serIDs, con=options()$TSconnection,  ...)

Arguments

con A database connection.
serIDs identifiers for series to extract.
... Arguments passed to TSget.SQL or other methods.

Details

These functions extracts data from a database using a connection. This method is generic. The argument serIDs should give identifiers for the series to extract.

TSget and other functions also provide a way to query a regularly used database by setting the connection in options using options(TSconnection=con), so then only the series identifiers need to be specified in calls to TSget.

If the database supports vintages or panels then it is also possible to set defaults for these with, for example, options(TSvintage="current") and options(TSpanel="Canada"). The default specification has to be supported by the database for this to work.

The user can specify a default time series representation with options(TSrepresentation="something"), where "something" might typically be "zoo". If TSrepresentation is not set with options() and not specified in the call then the ts representation is used for data from tables "A", "Q", "M","S" and zoo otherwise. See TSput for a list of the various tables. ONLY THIS DEFAULT IS WORKING AT PRESENT.

names, TSrepresentation, TSdescription and documentation can also be specified as arguments. (Passed in ...). See TSput.SQL for more details.

Value

A time series matrix.

See Also

TSdbi-package, TSconnect, TSput, TSdates


[Package TSdbi version 2007.10-1 Index]