Learn R Programming

spcosa (version 0.4-2)

SamplingPatternRandomComposite-class: Class "SamplingPatternRandomComposite"

Description

A class for storing composites obtained by random sampling.

Arguments

Objects from the Class

Objects can be created by calls of the form new("SamplingPatternRandomComposite", ...). However, objects are usually created by calling spsample.

Slots

composite:

Object of class "integer", indicating to which composite sample a sampling unit belongs.

sample:

Object of class "SpatialPoints", containing the sampling locations.

Extends

Class "SamplingPatternRandom", directly. Class "SamplingPattern", by class "SamplingPatternRandom", distance 2.

Methods

coerce

signature(from = "SamplingPatternRandomComposite", to = "data.frame"): coerces to "data.frame".

coerce

signature(from = "SamplingPatternRandomComposite", to = "SpatialPointsDataFrame"): coerces to "SpatialPointsDataFrame".

estimate

signature(statistic = "SamplingVariance", stratification = "CompactStratificationEqualArea", samplingPattern = "SamplingPatternRandomComposite", data = "data.frame"): estimates the sampling variance. See "SamplingVariance" for more details.

estimate

signature(statistic = "SpatialMean", stratification = "CompactStratificationEqualArea", samplingPattern = "SamplingPatternRandomComposite", data = "data.frame"): estimates the spatial mean. See "SpatialMean" for more details.

getSampleSize

signature(object = "SamplingPatternRandomComposite"): returns the sample size per stratum.

plot

signature(x = "CompactStratification", y = "SamplingPatternRandomComposite"): plots sampling pattern y on top of stratification x.

plot

signature(x = "SamplingPatternRandomComposite", y = "missing"): plots sampling pattern x.

Author

Dennis J. J. Walvoort dennis.walvoort@wur.nl, D.J. Brus, J.J. de Gruijter