circularExtension: Circular extension of the grid

View source: R/circularExtension.R

circularExtensionR Documentation

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 values.

rowLimit

"integer", row limit (= number of rows) of the field layout

colLimit

"integer", column limit (= number of columns) of the field layout

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


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



mvngGrAd documentation built on Oct. 10, 2023, 1:08 a.m.