[R] How to do a moving window on standard deviation
    eric 
    ericstrom at aol.com
       
    Sun Jan 30 21:19:10 CET 2011
    
    
  
I'd rather do this without getting into zoo objects at the moment. OK, how
about with a simple loop ? Why doesn't this work ?
attach(xyz)
j <- for(i in 4: length(Close)) sd(Close[i]:Close[(i-3)])
-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-do-a-moving-window-on-standard-deviation-tp3247566p3247611.html
Sent from the R help mailing list archive at Nabble.com.
    
    
More information about the R-help
mailing list