search for: longzoo

Displaying 2 results from an estimated 2 matches for "longzoo".

Did you mean: longwood
2010 Aug 11
0
sweep and zoo objects
...heck.margin=TRUE, ...) so in my example x would be a long yearmon zoo object with the same column names as MYZOO above, but decades of data. MARGIN would be rows and the STATS to sweep out would be the values in MYZOO. test3<-matrix(seq(1,720, by=1), ncol=10) p<-zoo(test3[,1], freq=12) longzoo<-merge(p,test3[,2:10]) colnames(longzoo)<-row.names(test) what we want to do is to sweep out MYZOO from longzoo. I could just repeat the data in MYZOO 6 times and then subtract MYZOO from longzoo, but thats a potential memory buster in this situation [[alternative HTML version deleted]]
2010 Aug 11
2
Sweeping a zoo series
Given a long zoo matrix, the goal is to "sweep" out a statistic from the entire length of the sequences. longzoomatrix<-zoo(matrix(rnorm(720),ncol=6),as.yearmon(outer(1900,seq(0,length=120)/12,"+"))) cnames<-c(12345,23456,34567,45678,56789,67890) colnames(longzoomatrix)<-cnames longzoomatrix[1:24,] 12345 23456 34567 45678 56789 67890 Jan 1900 -0.17...