This function calculates spatial balance grid cell extent and proportions for a survey design. The user must provide either sbc.frame or values for dx, dy, xc, and yc.
sbcsamp(sp.sample, sbc.frame = NULL, dx = NULL, dy = NULL,
xc = NULL, yc = NULL)
The sp package object of class "SpatialPointsDataFrame" produced by the grts or irs functions that contains survey design information.
The object created by the sbcframe function. The default is NULL.
Grid cell x-coordinate increment value. The default is NULL.
Grid cell y-coordinate increment value. The default is NULL.
Vector of grid cell x-coordinates. The default is NULL.
Vector of grid cell y-coordinates. The default is NULL.
List containing the following components:
the sample extent for each grid cell
the sample proportion for each grid cell
readShapeFilePts
C function to read the shp file of a point shapefile and return a data frame containing the x-coordinates and y-coordinates for elements in the frame
cell.wt
calculates number of points in a cell for a points object