Learn R Programming

enerscape (version 1.2.0)

humanscape: Compute Energy Landscapes for Walking People

Description

This is the main function to compute energy landscapes from a digital elevation model, body mass of a person, and walking speed from Looney et al. (2019).

Usage

humanscape(dem, m, v = 1.39, unit = "joule", neigh = 8)

Value

EnergyScape raster.

Arguments

dem

raster file of the digital elevation model, either a raster or a full path location of the file.

m

species body mass (kg).

v

walking speed (m/s).

unit

if joules ('joule') or kilocalories ('kcal').

neigh

number of neighbor cells that are connected together.

References

Looney, D. P., Santee, W. R., Hansen, E. O., Bonventre, P. J., Chalmers, C. R., & Potter, A. W. (2019). Estimating energy expenditure during level, uphill, and downhill walking. Med. Sci. Sports Exerc., 51(9), 1954-1960. tools:::Rd_expr_doi("https://doi.org/10.1249/MSS.0000000000002002").

Examples

Run this code
library(terra)
library(enerscape)

data("volcano")
dem <- rast(volcano)
en <- humanscape(dem, 10, 1, unit = "kcal", neigh = 16)

Run the code above in your browser using DataLab