Re: [R] rollmean help (or similar function)

2010-08-21 Thread Gabor Grothendieck
On Sat, Aug 21, 2010 at 3:01 AM, Gabor Grothendieck wrote: > On Fri, Aug 20, 2010 at 3:47 PM, Hall, Ken (CDC/OSELS/NCPHI) > wrote: I have also added some slightly simpler sqldf solutions here: http://code.google.com/p/sqldf/#Example_16._Moving_Average ___

Re: [R] rollmean help (or similar function)

2010-08-21 Thread Gabor Grothendieck
On Fri, Aug 20, 2010 at 3:47 PM, Hall, Ken (CDC/OSELS/NCPHI) wrote: > I am working on a simple pilot project comparing the capability of SQL, > SAS and R to perform a rolling mean per the following instructions. I > have completed the SQL and SAS analysis, so now it's R's turn. > > Calculate mean

Re: [R] rollmean help (or similar function)

2010-08-20 Thread stephen sefick
I don't know if this is what you are after, but have a look at: rollmean in the zoo package hth Stephen On Fri, Aug 20, 2010 at 2:47 PM, Hall, Ken (CDC/OSELS/NCPHI) wrote: > I am working on a simple pilot project comparing the capability of SQL, > SAS and R to perform a rolling mean per the fol

[R] rollmean help (or similar function)

2010-08-20 Thread Hall, Ken (CDC/OSELS/NCPHI)
I am working on a simple pilot project comparing the capability of SQL, SAS and R to perform a rolling mean per the following instructions. I have completed the SQL and SAS analysis, so now it's R's turn. Calculate mean values of x (x=count) for each date in the dataset where mean = the average c

Re: [R] rollmean and stl

2008-07-22 Thread Achim Zeileis
On Tue, 22 Jul 2008, stephen sefick wrote: I need to investigate how rollmean and the trend returned from stl differ. I am trying to find out exactly what the trend part of stl is (I have just started coding in R and do not know fortran). I need to extract this because it will be used in furthe

[R] rollmean and stl

2008-07-22 Thread stephen sefick
I need to investigate how rollmean and the trend returned from stl differ. I am trying to find out exactly what the trend part of stl is (I have just started coding in R and do not know fortran). I need to extract this because it will be used in further calculations, and it needs to be verified to

Re: [R] rollmean()

2008-07-09 Thread stephen sefick
I am going to assume your data.frame is called x #this transposes the matrix x.t <- t(x) rollmean(x.t) On Wed, Jul 9, 2008 at 12:50 PM, Rheannon <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to calculate a 31 day running mean in some temperature data > along ROWS. Rollmean() works great a

Re: [R] rollmean()

2008-07-09 Thread Gabor Grothendieck
See ?t On Wed, Jul 9, 2008 at 12:50 PM, Rheannon <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to calculate a 31 day running mean in some temperature data > along ROWS. Rollmean() works great along columns, but how do I perform this > same action on my rows? > > The data is a matrix of 365

[R] rollmean()

2008-07-09 Thread Rheannon
Hello, I am trying to calculate a 31 day running mean in some temperature data along ROWS. Rollmean() works great along columns, but how do I perform this same action on my rows? The data is a matrix of 365 columns (days of the year) by 5,000 rows (lat/long coordinates). I would like to perform