ssk: Calculates the Skewness of Raster Values

View source: R/basics.R

sskR Documentation

Calculates the Skewness of Raster Values

Description

Finds the Fisher-Pearson coefficient of skewness for raster or matrix values (Ssk). Skewness represents the asymmetry of the surface height distribution. Height is measured as the value of a raster/matrix and may not necessarily represent actual height.

Usage

ssk(x, adj = TRUE)

Arguments

x

A raster or matrix.

adj

Logical, defaults to TRUE. If TRUE, the adjusted Fisher-Pearson coefficient of skewness is calculated. Otherwise, the standard coefficient is calculated.

Value

A numeric value representing skewness. # import raster image data(normforest) normforest <- terra::unwrap(normforest)

# find the adjusted coefficient of skewness Ssk <- ssk(normforest, adj = TRUE)


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