readelevdata {CTFS} | R Documentation |
Read a tab delimited text file or an RData dataframe containing the x, y coordinates and elevation at those coordinates The standard file has measurements at every 5 by 5 m point in the plot. A matrix is returned for use in topographic mapping functions.
readelevdata(elevfile, gridsize = 5, text = FALSE)
elevfile |
file containing elevation data. bcielev.info
is the RData dataframe. Or specify a text, tab delimited
file. |
gridsize |
the scale at which the measurement in elevation were made. Must be regular. |
text |
indicates where the elevfile is a text
file or a dataframe. |
This function is used to convert a spreadsheet text file or a dataframe to a matrix so that topographic maps can be made of the plots.
Returns a matrix with rows and columns in the same
pattern of the actual measurement in the plot. In the case of the
standard plot, 1000 by 500 m, measured at 5 m intervals, there are
101 rows and 201 columns. All edges of the plot are included.
1000 / 5 = 200 + 1 (outer edge) = 201 columns
500 / 5 = 100 + 1 (outer edge) = 101 rows
Rick Condit and Suzanne Lao
## Not run: readelevdata(bcielev.info)->elev.mat dim(elev.mat) bcielev.info[1:10,] elev.mat[1:10,1:10] ## End(Not run)