#[20,] NA NA NA NA NA
A.K.
- Original Message -
From: Anika Masters anika.mast...@gmail.com
To: R help r-help@r-project.org
Cc:
Sent: Thursday, June 27, 2013 3:00 PM
Subject: [R] using rollapply to calculate a moving sum or running sum?
#using rollapply to calculate
On Sat, Aug 3, 2013 at 7:16 AM, Enrico Schumann e...@enricoschumann.net wrote:
On Fri, 02 Aug 2013, Anika Masters anika.mast...@gmail.com writes:
This is not critical, but I am curious to learn. Are there any
suggestions for speeding up the process to calculate a moving row sum?
(Ideally from
-Original Message-
From: William Dunlap
Sent: Friday, August 02, 2013 2:57 PM
To: 'Anika Masters'; arun
Cc: R help
Subject: RE: [R] using rollapply to calculate a moving sum or running sum?
Try the filter() function.
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
to calculate a moving sum or running sum?
#using rollapply to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
rollapply and get the error message
#Error in seq.default(start.at, NROW(data), by = by) :
# wrong sign in 'by' argument
To: R help r-help@r-project.org
Cc:
Sent: Thursday, June 27, 2013 3:00 PM
Subject: [R] using rollapply to calculate a moving sum or running sum?
#using rollapply to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
rollapply
#using rollapply to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
rollapply and get the error message
#Error in seq.default(start.at, NROW(data), by = by) :
# wrong sign in 'by' argument
#example:
mymatrix - ( matrix(data=1:100,
This gets you close ...
Jean
library(zoo)
t(apply(mymatrix, 1, rollapply, w, sum))
On Thu, Jun 27, 2013 at 2:00 PM, Anika Masters anika.mast...@gmail.comwrote:
#using rollapply to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
On Thu, Jun 27, 2013 at 3:00 PM, Anika Masters anika.mast...@gmail.com wrote:
#using rollapply to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
rollapply and get the error message
#Error in seq.default(start.at, NROW(data), by = by) :
:
Sent: Thursday, June 27, 2013 3:00 PM
Subject: [R] using rollapply to calculate a moving sum or running sum?
#using rollapply to calculate a moving sum or running sum?
#I am tryign to use rollapply to calcualte a moving sum? #I tried
rollapply and get the error message
#Error in seq.default
9 matches
Mail list logo