dbhDom: DBH dominance - Aguirre et al. 2003

View source: R/dbhDom.R

dbhDomR Documentation

DBH dominance - Aguirre et al. 2003

Description

DBH dominance - Aguirre et al. 2003

Usage

dbhDom(dbh, focal_dbh)

Arguments

dbh

vector of dbh (diameter at breast height) measurements of competitor trees

focal_dbh

dbh of focal tree

Details

Gives the proportion of the n nearest neighbours which are smaller than the focal tree.

Value

value of competition index for focal tree

References

Aguirre, O., Hui, G., von Gadow, K., Jimenez, J. (2003). An analysis of spatial forest structure using neighbourhood-based variables. Forest Ecology and Management. Volume 183. Pages 13.

Examples

data(bicuar)
nb <- nearNeighb(bicuar$x, bicuar$y, bicuar$stem_id, k = 4) 
lapply(nb, function(x) {
  nb <- merge(x, bicuar, by.x = "nb", by.y = "stem_id")
  focal_diam <- unique(bicuar[bicuar$stem_id == nb$focal,"diam"])
  dbhDom(nb$diam, focal_diam)
  })


johngodlee/compInd documentation built on Aug. 5, 2024, 8:44 a.m.