cts {FitAR}R Documentation

Concantenate Time Series

Description

Concatenate two ts objects

Usage

cts(x, y)

Arguments

x one time series, a ts object
y a vector or ts object which is concatenated on to x

Details

If y is a ts object, it is first converted to a vector. Then the vector is concantenated on to the time series x.

Value

A time series which starts at start(x) and has length equal to length(x)+length(y).

Author(s)

A.I. McLeod

See Also

ts, start, window

Examples

#Example 1
#Compare cts and c
#In the current version of R (2.6), they produce different results
z1<-window(lynx,end=1900)
z2<-window(lynx,start=1901)
z<-cts(z1,z2)
y<-c(z1,z2)

#See also Example 2 in predict.FitAR documentation

[Package FitAR version 1.7 Index]