raster_to_dataframe: Convert an elevation raster to a data frame

View source: R/ridgeline_topography.R

raster_to_dataframeR Documentation

Convert an elevation raster to a data frame

Description

Convert a raster where cell values correspond to elevation to a data frame where each cell is an observation with the variables "x", "y", and "elev".

Usage

raster_to_dataframe(elev_raster)

Arguments

elev_raster

The elevation raster to convert.

Value

A data frame with the variables "x", "y", and "elev".


nstauffer/topo.ridges documentation built on June 29, 2023, 10:22 a.m.