Learn R Programming

tframe (version R2000.6-1)

tframed: Construct a Tframed Object

Description

Both functions construct a tframed object. These are generic functions. If tf is not a tframe object but has the necessary information then the default methods attempt to build a tframe.

Usage

tframed(x, tf)
	settf(tf, x)
	is.tframed(x)

Arguments

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

Value

  • A tframed object.

Details

This constructor is like ts but enables the tframe library's generic methods for handling time.

See Also

tframe

Examples

Run this code
z <- tframed(matrix(rnorm(200), 100,2), 
			tf=list(start=c(1982,1), frequency=12))
	is.tframed(z)

Run the code above in your browser using DataLab