Description Usage Arguments Value Author(s) Examples
Execute a funciton over a focal window
1 2 3 |
r |
a raster |
window.size |
the number of cells that you would like the focal window to be, must be odd |
fun |
function to calculate in the focal analysis |
Returns a raster
Connor F. White and Meghan Blumstein
1 2 3 4 5 6 7 | #library(raster)
#r<-matrix(rnorm(10000),nrow=100,ncol=100)
#r<-raster(r)
#map<-focalfast(r=r,windowsize=4,fun=mean)
#image(map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.