Learn R Programming

mvngGrAd (version 0.1.4)

circularExtension: Circular extension of the grid

Description

The function finds the subscripts of the cells that extend the grid in layers that extend from the center in all directions other than 0, 90, 180 and 270 degree. The function is not intended to be called by the user.

Usage

circularExtension(i, j, layers, rowLimit, colLimit)

Arguments

i
"integer", row subscript of center cell
j
"integer", column subscript of center cell
layers
"integer", vector giving the layers to be included in the grid that extents from the center cell in all other directions than 0, 90, 180 and 270 degree. Can be NULL ( no extension) and must not contain '0', negative or duplicated va
rowLimit
"integer", row limit (= number of rows) of the field layout
colLimit
"integer", column limit (= number of columns) of the field layout

Value

  • A matrix with the row subscripts of the cells in column one and the column subscripts in column two.

Details

This function is called by the function movingGrid and is not intended to be called by the user.

Examples

Run this code
circularExtension(i = 1,
                  j = 10,
                  rowLimit = 50,
                  colLimit = 50,
                  layers = c(1,2,3))

Run the code above in your browser using DataLab