focal_brick: Focal Stat brick

View source: R/focal_brick.R

focal_brickR Documentation

Focal Stat brick

Description

Calculate focal stats for each layer in a raster brick

Usage

focal_brick(brick, window, fun = mean)

Arguments

brick

a raster brick object

window

a matrix defining the windo across which to calculate the statistic

fun

the function to use when calculating the statistic (mean by default)

Value

a raster brick with the same extents as brick


MatthewJWhittle/spatialutils documentation built on March 16, 2023, 11:30 p.m.