Learn R Programming

tframe (version R2000.6-1)

tframe: Extract or Set a Tframe

Description

The first usage extracts the tframe from a tframed object. These are generic functions. The default method attempts to build a tframe for time series, matrix, or array which is not tframed. The second usage assigns the tframe to an object.

Usage

tframe(x)
	tframe(x) <- tf
	is.tframe(x)

Arguments

x
A tframed object or an object to be tframed.
tf
A tframe.

Value

  • A tframe.

Details

The first usage returns the tframe of a tframed object. The second usage sets the tframe of an object.

See Also

tframed

Examples

Run this code
z <- tframe(ts(rnorm(100), start=c(1982,1), frequency=12))
	is.tframe(z)

Run the code above in your browser using DataLab