range_Grid: Range of a 'Grid' object

View source: R/miscUtils.R

range_GridR Documentation

Range of a Grid object

Description

Range of a Grid object.

Usage

range_Grid(X)

Arguments

X

An object with S4 class "Grid", or an object with S3 class "matrix" or "data.frame" that can be coerced into a "Grid" object.

Value

A numeric matrix with two rows representing the min and max of the levels for each dimension of the grid.

Examples

set.seed(1234)
myGD <- randGrid(dim = 4)
range_Grid(myGD)
range_Grid(as.data.frame(myGD))
range_Grid(as.matrix(myGD))

IRSN/smint documentation built on Dec. 9, 2023, 9:53 p.m.