get_incoma: Create an integrated co-occurrence matrix (incoma)

Description Usage Arguments Value Examples

View source: R/get_incoma.R

Description

Create an integrated co-occurrence matrix (incoma)

Usage

1
get_incoma(x, neighbourhood = 4, classes = NULL)

Arguments

x

A list object containing categorical matrices with categories

neighbourhood

The number of directions in which cell adjacencies are considered as neighbours: 4 (rook's case) or 8 (queen's case). The default is 4.

classes

A list of the same length as x with the values of selected classes from all of the objects in x. It is used to calculate incoma only for selected classes.

Value

An integrated co-occurrence matrix

Examples

1
2
3
4
5
6
7
data(raster_x, package = "comat")
data(raster_w, package = "comat")
x = list(raster_x, raster_w, raster_x)

get_incoma(x)

get_incoma(x, classes = list(1:2, 2:4, 1))

comat documentation built on Oct. 14, 2021, 5:22 p.m.