Description Usage Arguments Value See Also Examples
View source: R/measure.operators.R
Calculate distribution parameters of cell values of a raster
1 |
obj |
[ |
param |
[ |
layer |
[ |
groupBy |
[ |
A list with elements resulting from the stratification with the value
of each specified parameter per object in groupBby
.
Other generic metrics: mAdjacency
,
mArea
, mNumber
,
mPerimeter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | con <- rtRasters$continuous
bin <- rBinarise(con, 30)
patches <- rPatches(bin)
# the average and standard deviation of all values
mValues(obj = con, param = c("mean", "sd"))
# destribution parameters per patch ...
mValues(obj = raster::stack(con, patches),
param = c("weighted.mean", "min", "max"), groupBy = "patches")
# ... or per class
mValues(obj = raster::stack(con, rtRasters$categorical),
param = c("mean", "sd"), groupBy = "categorical")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.