fgeo_elevation {fgeo.tool} | R Documentation |
Create elevation data.
Description
This function constructs an object of class "fgeo_elevation". It standardizes
the structure of elevation data to always output a dataframe with names gx
,
gy
and elev
.
Usage
fgeo_elevation(elev)
Arguments
elev |
One of these:
|
Value
A dataframe with names x/gx
, y/gy
and elev
.
Acknowledgments
This function was inspired by David Kenfack.
Examples
assert_is_installed("fgeo.x")
# Input: Elevation dataframe
elevation_df <- fgeo.x::elevation$col
fgeo_elevation(elevation_df)
class(elevation_df)
class(fgeo_elevation(elevation_df))
names(elevation_df)
names(fgeo_elevation(elevation_df))
# Input: Elevation list
elevation_ls <- fgeo.x::elevation
fgeo_elevation(elevation_ls)
class(elevation_ls)
class(fgeo_elevation(elevation_ls))
names(elevation_ls)
names(fgeo_elevation(elevation_ls))
[Package fgeo.tool version 1.2.9 Index]