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

get_wecove(x, ordered = TRUE, normalization = "none")

## Arguments

x A matrix - an output of the get_wecoma() function The type of pairs considered. Either "ordered" (TRUE) or "unordered" (FALSE). The default is TRUE. 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 weighted co-occurrence vector

## Examples

library(comat)
data(raster_x, package = "comat")
data(raster_w, package = "comat")

wom = get_wecoma(raster_x, raster_w)
wom#>      1    2    3
#> 1 12.0  5.0 13.5
#> 2  5.0 12.0 14.5
#> 3 13.5 14.5 49.0
wov = get_wecove(wom)
wov#>      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
#> [1,]   12    5 13.5    5   12 14.5 13.5 14.5   49