createRectGrid: Create a 'tibble' tibble describing a rectangular grid

View source: R/createRectGrid.R

createRectGridR Documentation

Create a tibble tibble describing a rectangular grid

Description

Function to create a tibble tibble describing a rectangular grid.

Usage

createRectGrid(xctrs, yctrs, dx = 1, dy = 1)

Arguments

xctrs
  • vector of x-axis locations of grid cell centers

yctrs
  • vector of y-axis locations of grid cell centers

dx
  • rectangle width (length along x-axis)

dy
  • rectangle height (length along y-axis)

Details

The returned tibble will have the following columns:

  • xc - rectangle center location along x-axis

  • yc - rectangle center location along y-axis

  • id - id (character) for rectangle with center xc,yc [="(xc,yc)"]

  • x - rectangle corner location along x-axis

  • y - rectangle corner location along y-axis

Value

a tibble. See Details.


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.