Description Usage Arguments Value Author(s) See Also Examples
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.
1 | lorey.height(BA, height, group.id = NULL)
|
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. |
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.
Clara Anton Fernandez (caf@nibio.no)
1 2 3 4 | library(sitree)
BA <- pi*(tr$dbh/2)^2
lorey.height(BA, tr$height)
lorey.height(BA, tr$height, tr$plot.id)
|
Loading required package: sitree
Loading required package: data.table
[1] 141.0231
group.id lorey.height
1 1 97.66872
2 2 152.82582
3 3 99.91531
4 4 124.40202
5 5 77.26734
6 6 58.51390
7 7 138.32290
8 8 100.48720
9 9 119.40171
10 10 143.23716
11 11 243.57256
12 12 140.64999
13 13 134.14133
14 14 118.29877
15 15 57.56511
16 16 115.12825
17 17 78.41576
18 18 80.06850
19 19 111.40069
20 20 217.88143
21 21 135.65803
22 22 78.89699
23 23 105.41592
24 24 231.68781
25 25 113.03701
26 26 136.91450
27 27 135.26344
28 28 151.38594
29 29 132.31834
30 30 120.29573
31 31 145.18246
32 32 116.53145
33 33 129.86614
34 34 47.98220
35 35 120.16829
36 36 165.63373
37 37 130.13411
38 38 200.67182
39 39 179.56329
40 40 111.23537
41 41 113.83752
42 42 90.49824
43 43 99.52636
44 44 134.98243
45 45 155.75211
46 46 116.50396
47 47 124.53763
48 48 143.08231
49 49 86.56008
50 50 189.76657
51 51 192.03218
52 52 70.22012
53 53 99.78080
54 54 147.13385
55 55 86.75842
56 56 188.08117
57 57 53.15383
58 58 88.31989
59 59 134.52631
60 60 81.20151
61 61 106.74954
62 62 89.38146
63 63 123.45617
64 64 128.67033
65 65 139.66587
66 66 100.88347
67 67 132.21853
68 68 240.18661
69 69 157.36547
70 70 134.67224
71 71 90.00000
72 72 76.76367
73 73 87.08306
74 74 103.12078
75 75 200.27606
76 76 89.08211
77 77 144.78998
78 78 148.56188
79 79 110.29530
80 80 185.79156
81 81 93.23628
82 82 136.36973
83 83 75.07045
84 84 70.48670
85 85 153.82305
86 86 52.48655
87 87 77.20552
88 88 53.22902
89 89 79.87405
90 90 61.77521
91 91 157.40158
92 92 134.74565
93 93 59.89300
94 94 135.54527
95 95 119.56802
96 96 36.12433
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.