extendHorVer {mvngGrAd} | R Documentation |
Vertical and horizontal extension of the grid ('cross shape')
Description
The function finds the subscripts of the cells that extend from the center in 0, 90, 180 and 270 degree direction ('cross shape'). The function is not intended to be called by the user.
Usage
extendHorVer(i, j, shapeCross, rowLimit, colLimit)
Arguments
i |
|
j |
|
shapeCross |
Elements can be NULL (no extension in this direction) and must contain no '0', duplicated or negative values.
|
rowLimit |
|
colLimit |
|
Details
This function is called by the function movingGrid
and is not
intended to be called by the user.
Value
A matrix with the row subscripts of the cells in column one and the column subscripts in column two.
Rdversion
1.1
Author(s)
Frank Technow
Examples
shape <- list(c(1,2,3),
c(1,2,3),
c(1:5),
c(1:5))
extendHorVer(i = 25,
j = 25,
shapeCross = shape,
rowLimit = 50,
colLimit = 50)