search for: xxnew

Displaying 1 result from an estimated 1 matches for "xxnew".

Did you mean: xnew
2012 Jan 05
1
match matrices of different lengths
...istent. have been trying the following: #### x <- c(200112030003, 200112030004, 200112030005, 200112030006) y <- c(0.1, 1, 1.1, 1.5) a <- c(200112030004, 200112030005, 200112030007, 200112030008, 200112030009) b <- c(1.2, 1.9, 2.0, 2.5, 2.1) xx <- cbind(x, y) aa <- cbind(a, b) xxnew <- ts(xx) aanew <- ts(aa) cc <- ts.union(xxnew, aanew) cc #### this does however not give the wished for result as it simply cbinds the two matrices and filles up empty spots that are created due to the one matrix being shorter then the other at the bottom end of the shortest matrix. i r...