Generation of grid with defined number of cels

Share:

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 should be also defined by the user.

Usage

1
2
## S4 method for signature 'Points'
Grid.def(object,gridded,numberOfCellsX,numberOfCellsY)

Arguments

object

Input data type of S4 object class Points.

gridded

Logical value TRUE/FALSE. If true, then Spatial grid is made.

numberOfCellsX

The number of cells on axle X.

numberOfCellsY

The number of cells on axle Y.

Value

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

See Also

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