Re: [R] cbind and mean by week

2008-03-26 Thread jim holtman
Is this what you want? You have to add "na.rm=TRUE" to the calculations: > week<-c(28,28,28,28,28,28,28,29,29,29,29,29,29,29,30,30,30,30,30,30,30) > td<-c(0.015,0.012,NA,0.015,NA,0.014,0.014,0.013,0.013,0.013,0.013,NA,0.010,0.013,0.015,0.011,0.014,0.014,0.014,0.014,0.016) > pd<-c(0,0,NA,80,NA,45,

[R] cbind and mean by week

2008-03-25 Thread Felipe Carrillo
Hi: I have been able to finally crunch my data by importing it by week(thank you all for your help),but here we go again.. Now I'am trying to do it for the the whole year. Since the dataset is huge I'm only making a 3 weeks dataframe. - I want to get the mean of pd by week - I want to count the