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

Description Usage Arguments Details Value Note See Also

View source: R/tis.R

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

1
2
## 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:

1
2
	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

as.ts


tis documentation built on Sept. 29, 2021, 1:06 a.m.