Learn R Programming

tframe (version R2000.6-1)

time: Time

Description

The time coresponding to each data point.

Usage

time(x)

Arguments

x
A tframe or tframed object.

Value

  • A time series of the dates of observations of x.

Details

This returns the time (date) of each observation, as might be used on the axis of a graph or lables of a printout.

See Also

periods tframe

Examples

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

Run the code above in your browser using DataLab