generate_lags: Generate Matrix Lags

Description Usage Arguments Examples

View source: R/nhapply_manipulation.R

Description

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.

Usage

1
generate_lags(neighb, rows, cols, transition = TRUE)

Arguments

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.

Examples

1

Tobiaspk/RPackage_nhapply documentation built on Feb. 19, 2021, 12:13 a.m.