predvol | R Documentation |
Predict individual tree volumes using the functions of Laasasenaho(1982). The volume prediction can be based on tree diameter or tree diameter and height. The functions applying upper stem diameter have not (yet) been implemented.
predvol(species,d,h=0,model=1)
species |
The vector of tree species. 1:Pine, 2:Spruce, 3: Silver birch. 4: Downy birch. Other codes than 1-4 are accepted but return NA as the volume prediction. |
d |
The vector of tree diameters at breast height (cm) |
h |
The vector of tree heights. Used only if model=2. |
model |
The model used. If model is 1, the prediction is based on tree diameter only. If model=2, then diameter and height are used. |
Vectors species, dbh and height should be either scalars or vectors of the same length so that each element corresponds to one individual tree.
A vector of tree volumes (in liters).
Lauri Mehtatalo <lauri.mehtatalo@uef.fi>
Laasasenaho, Jouko 1982. Taper curve and volume functions for pine, spruce and birch. Comm. Inst. For. Fenn 108: 1-74.
d<-c(15,18.3,29.3,22.4) h<-c(13,18,22,19) species<-c(1,1,1,3) predvol(species,d,h,model=2) predvol(species,d,model=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.