Learn R Programming

spsurvey (version 4.1.4)

sbcframe: Calculate Spatial Balance Grid Cell Extent and Proportion for a Survey Frame

Description

This function calculates spatial balance grid cell extent and proportion for the sample frame.

Usage

sbcframe(sfobject, nrows = 5, dxdy = TRUE)

Arguments

sfobject

An object of class sf that contains the survey frame.

nrows

Number of rows (and columns) for the grid of cells. The default is 5.

dxdy

Indicator for equal x-coordinate and y-coordinate grid cell increments, where TRUE means the increments are equal and FALSE means the increments are not equal. The default is TRUE.

Value

List containing the following components:

extent

the frame extent for each grid cell

prop

the frame proportion for each grid cell

xmin

the grid x-coordinate minimum value

xmax

the grid x-coordinate maximum value

ymin

the grid y-coordinate minimum value

ymax

the grid y-coordinate maximum value

dx

the grid cell x-coordinate increment value

dy

the grid cell y-coordinate increment value

xc

the vector of grid cell x-coordinates

yc

the vector of grid cell y-coordinates