spsample-methods {spcosa}R Documentation

Spatial Sampling of Compact Strata

Description

Methods for sampling in compact strata.

Methods

x = "CompactStratification", n = "missing", type = "missing"
samples the centroids of each stratum.
x = "CompactStratification", n = "numeric", type = "missing"
stratified simple random sampling with n samples per stratum.
x = "CompactStratificationEqualArea", n = "numeric", type = "character"
if type = "composite", stratified simple random sampling of n composites.
x = "CompactStratificationPriorPoints", n = "missing", type = "missing"
spatial infill sampling

See Also

spsample for other types of spatial sampling.

Examples

## Not run: 

# read a vector representation of the `Farmsum' field (by means of rgdal-package)
shpFarmsum <- readOGR(dsn = system.file("maps", package = "spcosa"), layer = "farmsum")

# stratify `Farmsum' into 50 strata
myStratification <- stratify(shpFarmsum, nStrata = 50)

# sample two sampling units per stratum
mySamplingPattern <- spsample(myStratification, n = 2)

# plot the resulting sampling pattern
plot(myStratification, mySamplingPattern)
## End(Not run)

[Package spcosa version 0.1-5 Index]