elev.to.list {CTFS}R Documentation

Converts a Dataframe of Elevation Values to a Matrix

Description

Converts the dataframe of x, y coordinates and elevation to a list with two objects: the original data frame and the same data in matrix format. The matrix format is useful for making maps and calculating mean topographic values for quadrates.

Usage

elev.to.list(elevfile, gridsize = 5)

Arguments

elevfile data frame of x, y coordinates and elevation, bcielev.info
gridsize scale of elevation values (m)

Details

This function creates two versions of the same information, as the original data frame and as a list. The point of this is that other functions rely upon one or the other object structure.

Value

A list composed of

col data frame of x, y coordinates and elevation
x x coordinate, East-West
y y coordinate, North-South
elevation elevation, in meters
mat matrix in the orientation of the plot

Author(s)

Rick Condit

See Also

CTFS.readwrite, map, meantopo.quad

Examples

## Not run: 
bcitopo.info <- elev.to.list(bcielev.info)
str(bcitopo.info)
## End(Not run)

[Package CTFS version 1.00 Index]