[R] moving-window (neighborhood) analysis

Carlos "Guâno" Grohmann carlos.grohmann at gmail.com
Wed Jun 27 17:27:28 CEST 2007


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



More information about the R-help mailing list