Description Usage Arguments Examples
View source: R/nhapply_manipulation.R
This function takes coordinates (2-col matrices) as inputs and generates a list with the dimensions "rows" and "cols" being indices on how to lag a matrix to achieve desired output.
1 | generate_lags(neighb, rows, cols, transition = TRUE)
|
neighb |
is a matrix with two columns each representing the x-axis and y-axis of a pixel in the pixel neighbourhood. |
rows, cols |
describes how many columns/rows the matrix has. |
transition |
this parameter describes, if the matrix should continue at the other side of the screen if ending at one. |
1 | l <- generate_lags(generate_coords_default(2, 2), 10, 10, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.