get_cocove: Create a co-located co-occurrence vector (cocove)

Description Usage Arguments Value Examples

View source: R/get_cocove.R

Description

Converts a co-located co-occurrence matrix (cocoma) to a co-located co-occurrence vector (cocove)

Usage

1
get_cocove(x, ordered = TRUE, normalization = "none")

Arguments

x

A matrix - an output of the get_cocoma() function

ordered

The type of pairs considered. Either "ordered" (TRUE) or "unordered" (FALSE). The default is TRUE.

normalization

Should the output vector be normalized? Either "none" or "pdf". The "pdf" option normalizes a vector to sum to one. The default is "none".

Value

A co-located co-occurrence vector

Examples

1
2
3
4
5
6
7
8
9
library(comat)
data(raster_x, package = "comat")
data(raster_x_na, package = "comat")

coom = get_cocoma(raster_x, raster_x_na)
coom

coov = get_cocove(coom)
coov

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