lorey.height: Lorey's height

Description Usage Arguments Value Author(s) See Also Examples

View source: R/LoreyHeight.R

Description

Calculates Lorey's height (mean height weigted by basal area). If group.id is not NULL, it will calculate Lorey's height for each group.

Usage

1
lorey.height(BA, height, group.id = NULL)

Arguments

BA

A vector with the basal areas of the trees

height

A vector with the height of the trees

group.id

An optional vector with a grouping variable.

Value

If a grouping variable is provided it returns a data frame with two columns (group.id, and lorey.height). If a grouping variable is not provided it will return the Lorey's height.

Author(s)

Clara Anton Fernandez (caf@nibio.no)

See Also

height.of.X.tallest.trees

Examples

1
2
3
BA <- pi*(tr$dbh/2)^2
lorey.height(BA, tr$height)
lorey.height(BA, tr$height, tr$plot.id)

cantonfe/sitreeE documentation built on Aug. 3, 2019, 10:52 a.m.