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
lorey.height(BA, height, group.id = NULL)
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.