Usage
## S3 method for class 'SpatialPixels':
stratify(object, nStrata, priorPoints = NULL, maxIterations = 1000, nTry = 1,
equalArea = FALSE, verbose = getOption("verbose"))
## S3 method for class 'SpatialPolygons':
stratify(object, nStrata, priorPoints = NULL, maxIterations = 1000, nTry = 1,
nGridCells = 2500, equalArea = FALSE, verbose = getOption("verbose"))Arguments
object
an object of class "SpatialPixels" or "SpatialPolygons"
nStrata
number of strata (nStrata >= 1).
priorPoints
object of class "SpatialPoints", containing the prior (i.e., existing) points
maxIterations
maximum number of iterations.
nTry
the stratify method will try nTry initial configurations and will keep the best solution in order to reduce the risk of ending up with an unfavorable solution.
nGridCells
in case object is an instance of class "SpatialPolygons", the approximate number of grid cells to be used for discretizing the vector map in object.
equalArea
If FALSE the algorithm results in compact strata. If TRUE, the algorithm results in compact strata of equal size.
verbose
if TRUE, progress information and intermediate results will be printed to the output device.