dse (version R2000.6-1)

tfPADIdata: make tfPADIdata object

Description

Make a tfPADIdata object from a vector of identifiers

Usage

tfPADIdata( series, server="ets", db="", transforms="", names=NULL,
           start=NA, end=NA, frequency=NA, 
           pad=FALSE, pad.start=pad, pad.end=pad,
           use.tframe=T, stop.on.error=T, warn=T)
	is.tfPADIdata(obj)

Arguments

series
Character vectors of series identifiers.
server db transforms names
start
a two element vector of starting year and period which is used when requesting data.
end
a two element vector of end year and end period which is used when requesting data.
frequency
a scalar indicating frequency. This is not used in requesting data, but if supplied it is used as a check of returned data. A warning is issued if returned data does not have this frequency.
pad
T or F indicating if data should be padded with NAs on both ends to the length of the longest available series. If padding is not done then series are truncated to the intersection of available data so there are no NAs in the result. pad.start and pad.e
pad.start
T or F indicating if NAs should be padded to beginning of data.
pad.end
T or F indicating if NAs should be padded to end of data.
names
Names to replace series identifiers.
obj
Any object.

Value

  • A object of class "tfPADIdata" which can be used to retrieve a matrix time series object.

Details

This is the way to produce an object which can be used for database access. The transforms a vector of strings, one for each series, giving any transformations which should be applied when the data is retrieved (with eval(call()), e.g. "log", or "" if no transform is to be applied).

See Also

freeze

Examples

Run this code
z <- tfPADIdata( c("seriesA", "seriesB"), server="myserver")
	is.tfPADIdata(z)

Run the code above in your browser using DataLab