leastCost: Extracts the least cost from a least-cost path.

View source: R/leastCost.R

leastCostR Documentation

Extracts the least cost from a least-cost path.

Description

Sums the the distances of the samples in a least-cost path.

Usage

leastCost(
  least.cost.path = NULL,
  parallel.execution = TRUE
  )

Arguments

least.cost.path

dataframe produced by leastCostPath.

parallel.execution

boolean, if TRUE (default), execution is parallelized, and serialized if FALSE.

Value

A named list with least-cost values.

A named list with least cost values.


BlasBenito/distantia documentation built on Nov. 17, 2023, 11:06 p.m.