BDATDORHX  R Documentation 
Function to call BDAT Fortran subroutine to calculate diameter under bark in height Hx for specified tree/s.
BDATDORHX(BDATArtNr, D1, H1, D2, H2, H, Hx)
BDATArtNr 
numeric vector of species code; see

D1 
first measured diameter of tree [cm], e.g. diameter in breast height 
H1 
measurement height of 
D2 
second measured diameter of tree, see 
H2 
measurement height of D2, see 
H 
total tree height [m] 
Hx 
height in tree for which diameter under bark is required 
conventional function interface for BDATDORHX. See
getDiameter
for more details.
vector of diameters under bark
BDATDMRHX
for BDAT routine calculating diameter over
bark, getDiameter
for a function with a more convenient english
name, more options and a bark switch.
# simple call of function, with all parameters
BDATDORHX(1, 30, 1.3, 0, 0, 25, Hx = 1.3)
# same with variables
BDATArtNr < 1
D1 < 30
H1 < 1.3
D2 < 0
H2 < 0
H < 25
Hx < 1.3
BDATDORHX(BDATArtNr = BDATArtNr, D1 = D1, H1 = H1, D2 = D2, H2 = H2, H = H, Hx = Hx)
## calling with a subset of tree characteristics
## german species names, abbreviated
BDATDORHX(getSpeciesCode(c("Fi", "Bu")), 30, 0, 0, 0, H = 25, Hx = 1.3)
## english species names abbreviated
BDATDORHX(getSpeciesCode(c("NS", "BE")), 30, 0, 0, 0, H = 25, Hx = 1.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.