covWeight: Create a weighted covariance matrix
Description
Create a weighted covariance matrix
Usage
covWeight(m, weights, ...)
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()