Learn R Programming

habtools (version 1.1.1)

hvar: Calculate height variation in cells at different scales

Description

This is a helper function used for calculating fractal dimension using the height variation and standard deviation methods.

Usage

hvar(
  data,
  lvec = NULL,
  parallel = FALSE,
  ncores = (parallel::detectCores() - 1)
)

Value

A data.frame containing height ranges of cells at different scales.

Arguments

data

Digital elevation model of class RasterLayer.

lvec

Scales to use for calculation.

parallel

Logical. Use parallel processing? Note: parallel must be installed.

ncores

Number of cores to use when parallel = TRUE.

Examples

Run this code

hvar(horseshoe, lvec = c(1, 2, 4, 8))

Run the code above in your browser using DataLab