makeGrid2d: Grid2d class

makeGrid2dR Documentation

Grid2d class

Description

Given the extremes of the range and the number of cells along x and y, it generates a two-dimensional grid. Cells are counted from the minimum of x and y (bottom-left). You can choose whether to increase x or y faster.

Value

A two-dimensional grid

Slots

xcell

numeric, number of cells along x

ycell

numeric, number of cells along y

xmin

numeric, lower limit along x

xmax

numeric, upper limit along x

ymin

numeric, lower limit along y

ymax

numeric, upper limit along y

by

character, count cells increasing x ("h") or y ("v") faster

Examples

grid2d <- makeGrid2d(
            xmin = -50, xmax = 50, xcell = 100,
            ymin = -50, ymax = 50, ycell = 100,
            by = "v"
          )
grid2d

makeGrid2d()


Leonardo-Bo/rgrids documentation built on July 27, 2024, 2:19 a.m.