tframe {tframe}R Documentation

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)
    tframe(x)
    tframe(x)
    tframe(x)

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

Arguments

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

Details

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

Value

A tframe.

See Also

tframed

Examples

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