Learn R Programming

remote (version 1.2.3)

covWeight: Create a weighted covariance matrix

Description

Create a weighted covariance matrix

Usage

covWeight(m, weights, ...)

Value

see stats::cov.wt()

Arguments

m

a matrix (e.g. as returned by raster::getValues())

weights

a numeric vector of weights. For lat/lon data this can be produced with getWeights()

...

additional arguments passed to stats::cov.wt()

See Also