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

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.