is.grid: test for valid grid object

View source: R/is.grid.R

is.gridR Documentation

test for valid grid object

Description

tests to see if x is a properly formed and internally consistent grid object

Usage

is.grid(x)

Arguments

x

An potential grid object to be tested

Value

TRUE if x is a grid. FALSE otherwise.

Examples

  g  <- asgrid(matrix(1:4, 2, 2),  xll = 0, yll =0, cellsize = 10)
  is.grid(g)  # TRUE
  is.grid(matrix(1:4, 2, 2)) # FALSE

ethanplunkett/gridprocess documentation built on Feb. 1, 2024, 2:24 a.m.