get_wecove {comat}R Documentation

Create a weighted co-occurrence vector (wecove)

Description

Converts a weighted co-occurrence matrix (wecoma) to a weighted co-occurrence vector (wecove)

Usage

get_wecove(x, ordered = TRUE)

Arguments

x

A matrix - an output of the get_wecoma() function

ordered

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

Value

A weighted co-occurrence vector

Examples

library(comat)
library(raster)
data(x, package = "comat")
data(w, package = "comat")

wom = get_wecoma(x, w)
wom

wov = get_wecove(wom)
wov

[Package comat version 0.3.0 Index]