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/quadfunc.r

View File Source Download File No help file available

Function: getquadratname

Function Description: getquadratname

Convert x, y coordinates and plot dimensions into 4-character quadrat names. If x or y are missing, the quadrat=9999.

Function Arguments:

ArgumentDefault Value
x
y
plotdim

Function Source:

getquadratname=function(x,y,plotdim)
{
rowcol=gxgy.to.rowcol(gx=x,gy=y,plotdim=plotdim)-1

rowname=convert.rowcol(rowcol$row)
colname=convert.rowcol(rowcol$col)

result=pst(colname,rowname)
result[is.na(rowname)]="9999"

return(result)
}