Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'tis'
as.ts(x, ...)

Arguments

x

a tis object to be converted

...

Ignored

Details

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

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)

Note

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

See Also


tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.