memberships: produces membership values for each category in the input raster at a specified aggregated resolution
Description
Calculates membership values for each category in the input raster at a specified aggregated resolution
Usage
memberships(grid, fact = 2)
Value
a RasterBrick object containing membership values for each category in the input raster at a specified aggregated resolution
Arguments
grid
object of class SpatRaster
fact
positive integer. Aggregation factor expressed as number of cells in each direction (horizontally and vertically). Or two integers (horizontal and vertical aggregation factor). See aggregate() in the terra package for details