[R] moving-window (neighborhood) analysis

Bert Gunter gunter.berton at gene.com
Wed Jun 27 17:49:50 CEST 2007


See the "Spatial" section under CRAN's Task views 

Bert Gunter
Genentech Nonclinical Statistics

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Carlos "Guâno"
Grohmann
Sent: Wednesday, June 27, 2007 8:27 AM
To: r-help at stat.math.ethz.ch
Subject: [R] moving-window (neighborhood) analysis

Hello all

I was wondering what would be the best way to do a moving-window
analysis of a matrix? By moving-window I mean that kind of analysis
common in GIS, where each pixel (matrix element) of the resulting map
is a function of it neighbors, and the neighborhood is a square
matrix.
I was hoping there was some function in R that could do that, where I
could define the size of the neighborhood, and then apply some
function to the values, some function I don't have in GIS packages
(like circular statistics).

thanks all.

Carlos


-- 
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc  - Doctorate Student at IGc-USP - Brazil
Linux User #89721  - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

______________________________________________
R-help at stat.math.ethz.ch 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.



More information about the R-help mailing list