matrix_to_dataframe: Convert a matrix to a data frame

View source: R/ridgeline_topography.R

matrix_to_dataframeR Documentation

Convert a matrix to a data frame

Description

Convert a matrix of elevation data where columns represent the x component and rows represent the y to a data frame.

Usage

matrix_to_dataframe(matrix)

Arguments

matrix

The matrix of elevation values to be converted.

Value

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


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