View source: R/get_total_edge.R
get_total_edge | R Documentation |
Calculate total edge based on the input matrix
get_total_edge(x, resolution, neighbourhood = as.matrix(4))
x |
A matrix |
resolution |
A numeric vector with two values representing the input matrix resolution on the x and y axis |
neighbourhood |
The number of directions in which cell adjacencies are considered as neighbours: 4 (rook's case), 8 (queen's case) or a binary matrix where the ones define the neighbourhood. The default is 4. |
A total edge value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.