ts.union package:stats R Documentation _B_i_n_d _T_w_o _o_r _M_o_r_e _T_i_m_e _S_e_r_i_e_s _D_e_s_c_r_i_p_t_i_o_n: Bind time series which have a common frequency. 'ts.union' pads with 'NA's to the total time coverage, 'ts.intersect' restricts to the time covered by all the series. _U_s_a_g_e: ts.intersect(..., dframe = FALSE) ts.union(..., dframe = FALSE) _A_r_g_u_m_e_n_t_s: ...: two or more univariate or multivariate time series, or objects which can coerced to time series. dframe: logical; if 'TRUE' return the result as a data frame. _D_e_t_a_i_l_s: As a special case, '...' can contain vectors or matrices of the same length as the combined time series of the time series present, as well as those of a single row. _V_a_l_u_e: A time series object if 'dframe' is 'FALSE', otherwise a data frame. _S_e_e _A_l_s_o: 'cbind'. _E_x_a_m_p_l_e_s: ts.union(mdeaths, fdeaths) cbind(mdeaths, fdeaths) # same as the previous line ts.intersect(window(mdeaths, 1976), window(fdeaths, 1974, 1978)) sales1 <- ts.union(BJsales, lead = BJsales.lead) ts.intersect(sales1, lead3 = lag(BJsales.lead, -3))