get_cove | R Documentation |
Converts a co-occurrence matrix (coma) to a co-occurrence vector (cove)
get_cove(x, ordered = TRUE, normalization = "none")
x |
A matrix - an output of the |
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". |
A co-occurrence vector
library(comat)
data(raster_x, package = "comat")
com = get_coma(raster_x)
com
cov = get_cove(com)
cov
cov = get_cove(com, normalization = "pdf")
cov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.