Description Usage Arguments Value
Count the number of edges shared by cells of the same class within a matrix
1 | count_edges(mat, class, bidirectional = FALSE, diagonals = FALSE)
|
mat |
A numeric matrix. |
bidirectional |
Should both sides of each shared edge be counted? Defaults to FALSE. |
diagonals |
Should diagonal neighbours be included? Defaults to FALSE. |
classes |
The patch class of interest. Must be numeric. |
A numeric value for the number of edges shared by cells of the given class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.