[tech-spec] Re: day after

  • From: Henry Carstens <carstens@xxxxxxxxxxxxxxxxxxxxx>
  • To: tech-spec@xxxxxxxxxxxxx
  • Date: Thu, 9 Dec 2004 04:18:26 -0800

On Dec 8, 2004, at 11:14 PM, James Sogi wrote:

nr<-subset(r, d<2 & d>-2) #find days where cl/cl range is less than 2

Before you do the subsetting, you need to add a n+1 change column to the dataframe so you can reference it after the subset:

        mean(nr$tomorrow); sd(nr$tomorrow)


Other related posts: