Re: [R] rollmean()

From: stephen sefick <ssefick_at_gmail.com>
Date: Wed, 09 Jul 2008 14:21:32 -0400

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 <rbrooks_at_uvic.ca> 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 columns (days of the year) by 5,000 rows
> (lat/long coordinates).
> I would like to perform a 31 day running mean along the 365 days.
>
> I am new to R so any help would be greatly appreciated!
>
> Thanks alot,
> Rheannon
> --
> View this message in context:
> http://www.nabble.com/rollmean%28%29-tp18366044p18366044.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Let's not spend our time and resources thinking about things that are so
little or so large that all they really do for us is puff us up and make us
feel like gods. We are mammals, and have not exhausted the annoying little
problems of being mammals.

-K. Mullis

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 09 Jul 2008 - 18:50:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jul 2008 - 19:31:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive