smean: Calculates the Mean Peak Height of a Surface Image

View source: R/basics.R

smeanR Documentation

Calculates the Mean Peak Height of a Surface Image

Description

Finds the mean height of positive values in the landscape (mean peak height; Smean) for a raster or matrix representing a surface.

Usage

smean(x)

Arguments

x

A raster or matrix.

Value

A numeric value of mean peak height.

Examples

# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)

# find the maximum peak height
Smean <- smean(normforest)

bioXgeo/geodiv documentation built on Oct. 17, 2023, 5:58 a.m.