It calculates the mean height of the X tallest trees by grouping variable (e.g. the plot ID)
A vector with heights
A vector with the grouping variable, most often this would be the plot ID.
Number of trees used to calculate the mean height.
It returns a data.frame with two columns containing the uplotID and the mean height of the X tallest trees.
This function can be used to calculate the average of the X largest
values of any variable grouped by a grouping variable. It is mostly a
Clara Antón Fernández (firstname.lastname@example.org)
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.