Displaying 2 results from an estimated 2 matches for "recontruct".
Did you mean:
reconstruct
2005 Mar 16
2
How to concatenate time series?
...plot(dp$pred) # view the prediction
Now I created a combined chart of the original and predicted values. I tried it
like this:
dvs <- c(as.vector(USAccDeaths),as.vector(dp$pred))
plot(dvs, type="l")
Here, of course, the x axis does not display time values any more. So I manually
recontructed a time series from the concatenated vector:
ds<-ts(dvs, 1973, 1980.91666666667, deltat = 1/12)
plot(ds) # this is the chart I wanted
Now my question is:
Is there some way to directly concatenate the original and the predicted time
series? Searching the help files and this mailing list...
2007 Jun 01
1
zoo matrix manipulation
Hi,
I have this dataset where columns z1.3 and z1.4 are full of NA's. I want
to perform some calculations in the remaining columns, but after doing
this, I want to recontruct the original matrix. I can with:
out <- which( colMeans( is.na( z ) ) == 1 )
gd<-z[, - out]
select the columns full of NA's and those without that pattern. Then
after doing the calculus I need to reconstruct z as it was in its origin
(z1.1,z1.2,...,z1.6)
BTW:The z matrix is a zoo obj...