Hi,
I'm a new user of R. I want to use focal function of raster package. The
main functions which is introduced in this package are mean, max, median,
... .
Is it possible to use my own function by this method?
If yes, how should I implement this function?
For example,
> myfun <- function(...){...}
> r <- raster(x)
> t <-   focal(r, w=3, fun=myfun,pad=TRUE,padValue=1)
Thanks,

	[[alternative HTML version deleted]]

