spsample-methods {spcosa} | R Documentation |
Methods for sampling in compact strata.
type = "composite"
, stratified simple random sampling of n composites.
spsample
for other types of spatial sampling.
## 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)