Description Usage Arguments Value Examples
Create a weighted co-occurrence matrix (wecoma)
1 2 3 4 5 6 7 8 | get_wecoma(
x,
w,
neighbourhood = 4,
classes = NULL,
fun = "mean",
na_action = "replace"
)
|
x |
A matrix with categories |
w |
A matrix with weights |
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 vector or a list with the values of selected classes from the |
fun |
Function to calculate values from adjacent cells to contribute to output matrix, |
na_action |
Decides on how to behave in the presence of missing values in |
A weighted co-occurrence matrix
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.