Skip to contents

Calculates the distance between the lowest and highest point in a 3D object.

Usage

hr(data)

Arguments

data

A RasterLayer or mesh3d object.

Value

Value of height range.

Examples

# for a DEM
hr(horseshoe)
#> [1] 1.369283

# for a 3D mesh
hr(mcap)
#> [1] 0.2185397