Learn R Programming

dendrometry (version 0.0.4)

densityTree: Tree density

Description

Density of trees per plot.

Usage

densityTree(number, area, overall = TRUE)

Value

Vector of density.

Arguments

number

numeric, vector of tree count in each plot.

area

numeric, area of a plot.

overall

logical, if TRUE, an overall mean density is computed, otherwise density is computed for each plot. Default is TRUE.

Details

If every plot have same area, area is a numeric value, otherwise area is a vector of each plot area.

See Also

densityRegen for regeneration density.

Examples

Run this code
count <- setNames(
  c(87, 104, 83, 132, 107, 84, 110, 115, 112, 94),
  LETTERS[1:10]
)
densityTree(count, 10)
densityTree(count, area = 10, overall = FALSE)
densityTree(count, area = 10:19, overall = FALSE)

Run the code above in your browser using DataLab