Learn R Programming

smint (version 0.4.2)

range_Grid: 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

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

Run the code above in your browser using DataLab