Topic: Spatial

Topic Description:

Functions for calculating Ripley's K from CTFS R Analytical Tables, many routines for quadrat-based calculations. and calculations of wavelet variance.



File: spatial/slope.r

View File Source Download File No help file available

Function: elev.to.list

Function Description: elev.to.list

A function which reads a dataframe with x,y,elevation for a given grid size and converts to a list note the names of the columns in the dataframe must be: x y elev

Function Arguments:

ArgumentDefault Value
elevfile
gridsize5
elevfile
gridsize5

Arguments Description:

object 1 in list is: the input dataframe object 2 in list is: matrix of elevation value sin the orientation of the plot


Function Source:

elev.to.list=function(elevfile,gridsize=5)
{
xdim=max(elevfile$x)
ydim=max(elevfile$y)

elevmat=matrix(elevfile$elev,nrow=1+ydim/gridsize,ncol=1+xdim/gridsize,byrow=F)

return(list(col=elevfile,mat=elevmat))
}