Learn R Programming

dse (version R2000.6-1)

freeze.tfPADIdata: Get fixed data snapshot

Description

Get a time series matrix structure from a database

Usage

freeze.tfPADIdata(data)

Arguments

data
A description of how to get data.

Value

  • A time series matrix.

Details

This function extracts data from a database (for example using the TS PADI programs are available at ). This method is generic. Typically the argument data is a tfPADIdata or TSPADIdata object identifying the source of the data. See help for tfPADIdata and TSPADIdata. The default method usually just returns its argument, so freeze has no effect. This way freeze can be used to write functions which will take a snapshot from the database when they execute or will work with an already fixed copy of data if that is what is supplied. The default does allow for a character argument, in which case it is used to construct a tfPADIdata object using server="ets", then freeze that object. This allows for a simple syntax to grab a series from the database. The server="ets" is for convenience at the Bank of Canada and another default server might be more convenient elsewhere.

See Also

tfPADIdata freeze.TSPADIdata TSPADIdata

Examples

Run this code
if (require("padi")){
 freeze("D1")
 freeze(tfPADIdata(c("B1630", "B1642"), server="ets"))
  }

Run the code above in your browser using DataLab