Learn R Programming

tis (version 1.39)

as.ts.tis: Convert a Time Indexed Series to a Time Series

Description

Constructs a ts object from a tis object. The tis object's starting year, starting cycle, and frequency, along with the object's data, in a call to the ts function.

Usage

# S3 method for tis
as.ts(x, ...)

Arguments

x

a tis object to be converted

Ignored

Value

A ts object with the same data as x, and with starting time and frequency given by:

	start = c(year(xstart), cycle(xstart))
	frequency = frequency(x)

Details

The tis class covers more frequencies than the ts class does, so the conversion may not be accurate.

See Also

as.ts