smean | R Documentation |
Finds the mean height of positive values in the landscape (mean peak height; Smean) for a raster or matrix representing a surface.
smean(x)
x |
A raster or matrix. |
A numeric value of mean peak height.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# find the maximum peak height
Smean <- smean(normforest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.