View source: R/GeneralHelpers.R
| Lorey_mean_height | R Documentation | 
Lorey's mean height is calculated by dividing the sum of the product of the height and basal area of each tree by the total stand basal area.
Lorey_mean_height(tree_height_m, basal_area_m2)
tree_height_m | 
 numeric vector. Tree height in meters.  | 
basal_area_m2 | 
 numeric vector. Basal area in m2.  | 
This function can handle vectors.
Lorey's mean height.
heights <- c(15,12,14,15,10)
ba <- c(0.4,0.5,0.6,0.5,0.5)
Lorey_mean_height(tree_height_m=heights,basal_area_m2=ba)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.