tframed {tframe} | R Documentation |
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.
tframed(x, tf=NULL, names = NULL) tframed(x, tf = NULL, names = NULL) is.tframed(x) is.Ttframed(x)
x |
a tframed object or an object to be tframed. |
tf |
a tframe. |
names |
optional vector of strings to specify new series names. |
This tframed
constructor is like ts but enables the tframe library's
generic methods for handling time. is.tframed
returns TRUE if a
tframe()
can extract a tframe from the object. This is true for many
objects which are not truly tframed (like ts objects), since tframe()
tries fairly hard to build a tframe for the object. is.Ttframed
returns TRUE only if the object is truly tframed (i.e. has an attribute
tframe
).
A tframed object.
z <- tframed(matrix(rnorm(200), 100,2), tf=list(start=c(1982,1), frequency=12)) is.tframed(z)