search for: denise2

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

Did you mean: denise
2008 Aug 18
1
Converting monthly data to quarterly data
...I want to get rid of all extra data that does not fall into the quarters for each country), since the amount of data to get rid of for each country varies. I tried for example: i=1 denise<-data[((data$country)==unique(data$country[i]),] denise[,2]<- as.Date(denise$date, "%Y-%m-%d") denise2<-denise[order(denise[,2],decreasing=FALSE),] len<-length(denise[,1]) limit<-floor(len/3)+1 splitter<-rep(1:limit,each=3) spl.dat<-split(denise2,splitter) new.data<-as.matrix(lapply(spl.dat,FUN="mean")) This finds the mean every 3 rows but this doesnt consider the data q...
2008 Aug 19
0
Converting monthly data to quarterly dataMonday, August 18, 2008 11:38 AM
...), since the amount of data to get rid of for each country varies. > > > > > > I tried for example: > > > i=1 > > > denise<-data[((data$country)==unique(data$country[i]),] > > > denise[,2]<- as.Date(denise$date, "%Y-%m-%d") > > > denise2<-denise[order(denise[,2],decreasing=FALSE),] > > > len<-length(denise[,1]) > > > limit<-floor(len/3)+1 > > > splitter<-rep(1:limit,each=3) > > > spl.dat<-split(denise2,splitter) > > > new.data<-as.matrix(lapply(spl.dat,FUN="mean&qu...