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: create.neighbordata

Function Description: create.neighbordata

Calculates the mean density in neighboring quadrats for every quadrat, given a vector of abundances per quadrat. The vector of abundances must be ordered by quadrat index.

Function Arguments:

ArgumentDefault Value
abundperquad

Function Source:

create.neighbordata=function(abundperquad)
{
neighborabund=abundperquad

for(i in 1:dim(abundperquad)[1])
{
cat("species is ", rownames(abundperquad)[i], "\n")
neighborabund[i,]=findneighborabund(abundperquad[i,])$neighbor
}

return(neighborabund)
}