calculate_metrics: Calculate landscape metrics

View source: R/calculate_metrics.R

calculate_metricsR Documentation

Calculate landscape metrics

Description

Applies selected metrics to each raster layer in the lsma object using landscapemetrics.

Usage

calculate_metrics(x, level = "landscape", metric = NULL, ...)

Arguments

x

An object of class lsma.

level

Character. One of "patch", "class", or "landscape". Passed to calculate_lsm().

metric

Optional. Vector of metric names to calculate (e.g. "pland", "area"). Default is all.

...

Additional arguments passed to calculate_lsm.

Value

A tibble with calculated metrics by site and buffer.


wilsonfrantine/landscapeDecoupler documentation built on June 2, 2025, midnight