Learn R Programming

UncerIn2 (version 2.0)

Grid.box: Generation of grid defined by surrounding box

Description

This method creates a grid defined in two possible ways - the user should decide if spatial grid is required (gridded = TRUE/FALSE). The size of the grid is recognized by the input data coordinates. User should define size of the single cell.

Usage

"Grid.box"(object,gridded,cellsize)

Arguments

object
Input data type of S4 object class Points.
gridded
Logical value TRUE/FALSE. If true, then Spatial grid is made.
cellsize
Numeric value for the size of cell.

Value

Returns an object of class SpatialPixels or data.frame, depends on whether the spatial grid is required.

See Also

Points-class, Grid.def, Grid.interpolation, uncertaintyInterpolation2-package