energyscape: Energy Landscape

View source: R/RcppExports.R

energyscapeR Documentation

Energy Landscape

Description

Energy Landscape

Usage

energyscape(
  x,
  n = 4L,
  mass = 0,
  res = 0,
  kcal = TRUE,
  out = 0L,
  direction = 0L
)

Arguments

x

matrix with values the elevation.

n

(integer) number of neighbours to consider (either 4 or 8).

mass

body mass of species (kg).

res

numeric value (double) of the spatial resolution of the matrix.

kcal

(boolean) if to return the result in kCal (true) or J (false).

out

(integer) if to calculate the costs for moving into the cell (0) or from it (1).

direction

(integer) for which direction to calculate costs: 0 for all, 1 for left, 2 for down, 3 for right, 4 for up.

Value

Matrix with the energy cost of locomotion (EnergyScape).


emilio-berti/enerscape documentation built on Sept. 9, 2024, 9:43 p.m.