Rev 59039 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/stats/man/ts.union.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{ts.union}\alias{ts.union}\alias{ts.intersect}\title{Bind Two or More Time Series}\usage{ts.intersect(\dots, dframe = FALSE)ts.union(\dots, dframe = FALSE)}\arguments{\item{\dots}{two or more univariate or multivariate time series, orobjects which can coerced to time series.}\item{dframe}{logical; if \code{TRUE} return the result as a dataframe.}}\description{Bind time series which have a common frequency. \code{ts.union} padswith \code{NA}s to the total time coverage, \code{ts.intersect}restricts to the time covered by all the series.}\details{As a special case, \code{\dots} can contain vectors or matrices of thesame length as the combined time series of the time series present, aswell as those of a single row.}\value{A time series object if \code{dframe} is \code{FALSE}, otherwise adata frame.}\seealso{\code{\link{cbind}}.}\examples{ts.union(mdeaths, fdeaths)cbind(mdeaths, fdeaths) # same as the previous linets.intersect(window(mdeaths, 1976), window(fdeaths, 1974, 1978))sales1 <- ts.union(BJsales, lead = BJsales.lead)ts.intersect(sales1, lead3 = lag(BJsales.lead, -3))}\keyword{ts}