predvol: Individual tree volume functions for Finland

Description Usage Arguments Details Value Author(s) References Examples

View source: R/lmfor.R

Description

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.

Usage

1
predvol(species,d,h=0,model=1)

Arguments

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.

Details

Vectors species, dbh and height should be either scalars or vectors of the same length so that each element corresponds to one individual tree.

Value

A vector of tree volumes (in liters).

Author(s)

Lauri Mehtatalo <lauri.mehtatalo@uef.fi>

References

Laasasenaho, Jouko 1982. Taper curve and volume functions for pine, spruce and birch. Comm. Inst. For. Fenn 108: 1-74. http://urn.fi/URN:ISBN:951-40-0589-9

Examples

1
2
3
4
5
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)

Example output

Loading required package: stats4
Loading required package: nlme
Loading required package: spatstat
Loading required package: spatstat.data
Loading required package: rpart

spatstat 1.59-0       (nickname: 'J'ai omis les oeufs de caille') 
For an introduction to spatstat, type 'beginner' 


Note: R version 3.4.4 (2018-03-15) is more than 9 months old; we strongly recommend upgrading to the latest version
[1] 116.3517 230.1241 689.5876 337.7510
[1]  95.83716 157.92581 471.06318 349.85088

lmfor documentation built on July 8, 2020, 5:49 p.m.