# Yield Tables in ForestElementsR

#### Peter Biber

## 1 Introduction

Yield tables might be the most important tools forest science has ever provided to forest practice. They represent an invaluable wealth of empirical data that has been condensed into tabular descriptions of forest stand growth that are easy to work with. Since about three decades, however, they have been increasingly frowned upon for several reasons, among them their limited applicability to mixed species stands, their inherent restriction to even aged stands only, and their representation of forest growth under environmental conditions that have meanwhile changed, and cannot be considered as stable as they were at the time when the data behind the tables were collected. Nevertheless, when handled wisely, yield tables can still be highly valuable assets in our tool kit. Therefore, we developed a generic implementation of yield tables in ForestElementsR that is designed to work equally well with yield tables of different origin with different specifications and descriptive variables. A collection of yield tables for important tree species in Central Europe has already been implemented and comes readily with ForestElements; this collection will certainly keep growing. All readily available tables are listed in the documentation, you can look them up with `?yield_tables`. The purpose of this vignette is to explain how to work with our yield table implementation.

    # Before we start, let's attach the package
    library(ForestElementsR)

## 2 Yield Table Representation in ForestElementsR

Let’s have a look to a classic yield table, Wiedemann’s 1943 table for Scots pine (Pinus sylvestris). The bulk information used for our implementation was the version published by the Bavarian State Forest Administration (BayMinELF 2018), some information that was missing there, was taken from the version in Schober’s yield table collection (Schober 1975) in addition. As any yield table in ForestElementsR, the Wiedemann table for Scots pine is an S3 object of class `fe_yield_table`. its representation in the package is called `fe_ytable_pine_wiedemann_moderate_1943`.

    class(fe_ytable_pine_wiedemann_moderate_1943)
    #> [1] "fe_yield_table"

Such an object is essentially a list containing some metadata followed by the actual data. A basic overview can be obtained with:

    fe_ytable_pine_wiedemann_moderate_1943 |> summary()
    #>                     Length Class  Mode
    #> name_orig            1     -none- character
    #> name_international   1     -none- character
    #> site_indexes        11     -none- numeric
    #> site_index_variable  1     -none- character
    #> mai_variable         2     -none- character
    #> age_coverage        24     -none- numeric
    #> values              14     -none- list

The first six list elements represent the metadata, the seventh element, `values`, comprises the actual data.

### 2.1 Metadata

Let’s have a look at the metadata first:

    fe_ytable_pine_wiedemann_moderate_1943[1:6] # Elements 1-6 contain metadata
    #> $name_orig
    #> [1] "Kiefer Wiedemann 1943 Maessige Durchforstung"
    #>
    #> $name_international
    #> [1] "Scots Pine Wiedemann 1943 Moderate Thinning"
    #>
    #> $site_indexes
    #>  [1] 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
    #>
    #> $site_index_variable
    #> [1] "h_q_m"
    #>
    #> $mai_variable
    #> [1] "mai_m3_ha_yr"     "red_mai_m3_ha_yr"
    #>
    #> $age_coverage
    #>  [1]  25  30  35  40  45  50  55  60  65  70  75  80  85  90  95 100 105 110 115
    #> [20] 120 125 130 135 140

The list element `name_orig` contains the established original name of the yield table in the language it was originally published in. The second item, `name_international` is an English translation of the original name. The item `site_indexes` is a numeric vector of all site index values that are actually represented in the table with values. The Wiedemann pine table is using the traditional European approach of relative site indexing, i.e. site index 1.0 stands for the best site conditions, while 4.0 or greater represent considerably weak sites. A site index of 1.5 would be in the middle between the best and the second best site represented in the table. In its original form, this traditional site index numbering actually uses roman numerals before and arabic ones after the decimal point (e.g. II.3 = 2.3), but implementing this simply was not worth the effort. More important, our implementation works equally with yield tables that follow the approach of absolute site indexing (which is preferable from our point of view, but not frequently found in German yield tables). Have a look at the `site_indexes` entry of the yield table by Ernst Assmann and Friedrich Franz for Norway spruce (as taken from BayMinELF (2018)):

    fe_ytable_spruce_assmann_franz_mean_yield_level_1963$site_indexes
    #> [1] 20 24 28 32 36 40

These site indexes represent a stand’s dominant height in meters at an age of 100 years. So, a stand of site index 40 after Assmann and Franz would be expected to be 40 m high when it is 100 years old. As you will see below, we have implemented the option to express site quality in terms of such an absolute site index also for yield tables with a relative site index system. Back to the Wiedemann pine table, the next element of the metadata is called `site_index_variable`. This is a character vector with - typically - one element that provides the name of the variable which is used to determine the site index. As for most German yield tables, for the Wiedemann table it is the quadratic mean height in meters, abbreviated as “h_q_m”. This means when the quadratic mean height (and the age) of a Scots pine stand is known, its site index can be determined with this yield table. Again, the Assmann-Franz table can serve as an example for other possibilities:

    fe_ytable_spruce_assmann_franz_mean_yield_level_1963$site_index_variable
    #> [1] "h_100_m" "h_q_m"

This table was designed for site indexing based on the stands dominant height, here defined as the quadratic mean height of the 100 tallest trees per hectare, called “h_100_m” in our implementation. But in addition, this table also contains the usual quadratic mean stand height, “h_q_m”, so we allow both variables to be used for finding a stand’s site index. The next metadata element we called `mai_variable`. This relates to the concept of expressing site indexes in terms of the mean annual increment (the German term for this is “DGZ-Bonitierung”). The idea of that approach is to use a yield table with the classic input (stand height, age), but to express the site quality in terms of the expected mean annual increment (“m.a.i.”, German abbreviation “dGz”) at a given age or at its maximum (see more details below). The last metadata item, `age_coverage` is a numeric vector of all ages for which the table actually provides data. Note, that this is an “outer” age coverage, i.e. not all site indexes given in the table must necessarily cover the whole range of values. Often, poor site indexes start in the table at a higher age than better ones. Sometimes, the age interval might be different for different site indexes. E.g. the Wiedemann pine table usually provides values in five year age intervals, but in ten-year intervals only for site indexes 5.5 and 6.0. This is also not a problem with the age coverage to be given in the metadata; it always relates to the highest temporal resolution available in the table.

### 2.2 Actual Yield Table Data

The yield table data themselves are stored in the list element called `values`. This itself is a named list of matrices, one matrix for each variable given in the yield table, the list element names being the names of the variables. Note, that `fe_yield_table` objects are not required to have all an identical set of variables. In order to find out which variables are given in a yield table, you could obtain their names as follows:

    fe_ytable_pine_wiedemann_moderate_1943$values |> names()
    #>  [1] "h_q_m_si_plus_025"        "n_ha"
    #>  [3] "ba_m2_ha"                 "d_q_cm"
    #>  [5] "v_m3_ha"                  "pai_m3_ha_yr"
    #>  [7] "pai_perc_yr"              "mai_m3_ha_yr"
    #>  [9] "red_v_m3_ha"              "red_pai_m3_ha_yr"
    #> [11] "red_mai_m3_ha_yr"         "red_pre_yield_m3_ha_10yr"
    #> [13] "h_q_m"                    "tvp_m3_ha"

The order of the variables is not related to their importance, e.g. the first variable listed here, h_q_m_si_pluis_025, is the lower threshold height for a given site index as by default provided in the Bavarian state forest yield table editions (BayMinELF (2018), BayMinELF (1990)). For electronic site indexing this variable is not required, we kept it, however, test and documentation purposes. Of central importance, in contrast, are the variables which are used for the actual site indexing. In the Wiedemann pine table, this is `h_q_m"`, the quadratic mean stand height, as indicated in the metadata. As for any other variable in the yield table, it can be simply displayed as follows:

    fe_ytable_pine_wiedemann_moderate_1943$values$h_q_m
    #>     si_1 si_1.5 si_2 si_2.5 si_3 si_3.5 si_4 si_4.5 si_5 si_5.5 si_6
    #> 25  10.3   9.40  8.5   7.50  6.5     NA   NA     NA   NA     NA   NA
    #> 30  12.2  11.20 10.2   9.10  8.0   6.95  5.9   4.80  3.7   2.85  2.0
    #> 35  14.1  12.95 11.8  10.60  9.4   8.20  7.0   5.80  4.6     NA   NA
    #> 40  15.7  14.45 13.2  11.95 10.7   9.40  8.1   6.75  5.4   4.35  3.3
    #> 45  17.3  15.90 14.5  13.20 11.9  10.50  9.1   7.65  6.2     NA   NA
    #> 50  18.9  17.35 15.8  14.40 13.0  11.50 10.0   8.50  7.0   5.80  4.6
    #> 55  20.2  18.60 17.0  15.50 14.0  12.45 10.9   9.35  7.8     NA   NA
    #> 60  21.6  19.85 18.1  16.55 15.0  13.35 11.7  10.10  8.5   7.10  5.7
    #> 65  22.7  20.90 19.1  17.50 15.9  14.20 12.5  10.85  9.2     NA   NA
    #> 70  23.7  21.85 20.0  18.35 16.7  14.95 13.2  11.50  9.8   8.15  6.5
    #> 75  24.6  22.70 20.8  19.10 17.4  15.60 13.8  12.10 10.4     NA   NA
    #> 80  25.4  23.50 21.6  19.85 18.1  16.25 14.4  12.65 10.9   9.05  7.2
    #> 85  26.1  24.20 22.3  20.50 18.7  16.80 14.9  13.15 11.4     NA   NA
    #> 90  26.8  24.85 22.9  21.10 19.3  17.35 15.4  13.60 11.8   9.80  7.8
    #> 95  27.4  25.45 23.5  21.65 19.8  17.85 15.9  14.05 12.2     NA   NA
    #> 100 28.0  26.05 24.1  22.20 20.3  18.30 16.3  14.40 12.5  10.40  8.3
    #> 105 28.6  26.60 24.6  22.70 20.8  18.75 16.7  14.75 12.8     NA   NA
    #> 110 29.1  27.10 25.1  23.15 21.2  19.15 17.1  15.05 13.0  10.85  8.7
    #> 115 29.6  27.55 25.5  23.55 21.6  19.55 17.5  15.35 13.2     NA   NA
    #> 120 30.0  27.95 25.9  23.95 22.0  19.90 17.8  15.60 13.4  11.25  9.1
    #> 125 30.5  28.40 26.3  24.30 22.3  20.20 18.1  15.85 13.6     NA   NA
    #> 130 30.9  28.80 26.7  24.65 22.6  20.45 18.3  16.05 13.8  11.60  9.4
    #> 135 31.2  29.10 27.0  24.95 22.9  20.70 18.5  16.25 14.0     NA   NA
    #> 140 31.5  29.40 27.3  25.20 23.1  20.90 18.7  16.45 14.2  11.90  9.6

The columns of the matrix correspond to the site indexes given in the metadata. They are represented in the column names with the prefix “si_”. Each matrix row stands for a specific stand age, whereby the stand ages are the row names. The NA values are places where no value is given in the table, typically with low site indexes at younger ages or with broader age intervals. All other variables in the table are given as a matrices of exactly the same structure, take e.g. the periodic annual increment `pai_m3_ha_yr`:

    fe_ytable_pine_wiedemann_moderate_1943$values$pai_m3_ha_yr
    #>     si_1 si_1.5 si_2 si_2.5 si_3 si_3.5 si_4 si_4.5 si_5 si_5.5 si_6
    #> 25  12.0   10.7  9.4    8.3  7.2     NA   NA     NA   NA     NA   NA
    #> 30  12.0   10.7  9.3    8.2  7.2    6.0  4.8    3.6  2.4     NA   NA
    #> 35  11.6   10.4  9.1    8.1  7.0    5.9  4.8    3.9  3.0     NA   NA
    #> 40  10.8    9.9  8.9    7.8  6.7    5.8  4.9    4.1  3.2    2.3  1.2
    #> 45  10.2    9.4  8.5    7.5  6.5    5.7  4.9    4.2  3.4     NA   NA
    #> 50   9.8    8.9  7.9    7.1  6.2    5.5  4.8    4.2  3.5    2.6  1.7
    #> 55   9.4    8.5  7.5    6.8  6.0    5.3  4.6    4.1  3.5     NA   NA
    #> 60   8.8    8.0  7.1    6.4  5.7    5.2  4.6    4.1  3.6    2.8  1.9
    #> 65   8.4    7.7  6.9    6.2  5.5    5.0  4.4    4.0  3.6     NA   NA
    #> 70   8.0    7.4  6.7    6.0  5.3    4.9  4.4    4.0  3.6    2.7  2.0
    #> 75   7.6    7.1  6.5    5.8  5.1    4.7  4.2    3.8  3.4     NA   NA
    #> 80   7.4    6.8  6.2    5.6  4.9    4.6  4.2    3.8  3.4    2.6  2.1
    #> 85   7.0    6.5  6.0    5.4  4.7    4.4  4.0    3.6  3.2     NA   NA
    #> 90   6.6    6.2  5.8    5.2  4.6    4.3  3.9    3.5  3.0    2.4  2.0
    #> 95   6.4    5.9  5.4    4.9  4.4    4.1  3.7    3.3  2.8     NA   NA
    #> 100  6.0    5.6  5.1    4.7  4.3    4.0  3.6    3.1  2.6    2.1  1.8
    #> 105  5.8    5.4  4.9    4.5  4.1    3.8  3.4    2.9  2.4     NA   NA
    #> 110  5.6    5.1  4.6    4.3  4.0    3.7  3.4    2.8  2.3    1.9  1.6
    #> 115  5.2    4.8  4.4    4.1  3.8    3.5  3.2    2.7  2.1     NA   NA
    #> 120  4.8    4.5  4.1    3.9  3.6    3.3  2.9    2.5  2.0    1.6  1.4
    #> 125  4.6    4.3  3.9    3.7  3.4    3.1  2.7    2.3  1.8     NA   NA
    #> 130  4.4    4.1  3.7    3.5  3.2    2.9  2.5    2.1  1.7    1.3  1.1
    #> 135  4.2    3.9  3.5    3.3  3.0    2.7  2.3    1.9  1.5     NA   NA
    #> 140   NA     NA   NA     NA   NA     NA   NA     NA   NA     NA   NA

Before we come to visualizing yield table contents, let us shortly explain the variable names used in the Wiedemann pine table, as we are sticking as close as possible to this naming concept in any yield table we make a part of ForestElementsR. Note, however, that not all of these variables are necessarily contained in all tables we have included so far; some tables might also contain additional variables and (unfortunately) use other than metric units. For creating a working `fe_yield_table` object it is not necessary to stick to a certain naming concept although we highly recommend to do so. Let’s explain the variable names given above, beginning whith those that are common in most yield tables:

- h_q_m: Quadratic mean stand height (m)
- d_q_cm: Quadratic mean diameter at breast height (cm)
- n_ha: Number of trees per ha
- ba_m2_ha: Stand basal area (m²/ha)
- v_m3_ha : Stand wood volume (m³/ha)
- tvp_m³_ha: Total volume production (m³/ha)
- mai_m³_ha_yr: Mean annual volume increment (m³/ha/yr), i.e. the total volume production divided by the stand age
- pai_m3_ha_yr: Periodic mean annual increment (m³/ha/yr), i.e. the difference of the total volume production for two subsequent points in time divided by the corresponding time interval
- pai_perc_yr: Annual relative periodic increment (%/yr)

As the Wiedemann pine table was imported from the edition provided by the Bavarian State Forest Service (BayMinELF 2018), there are some peculiarities: Some of the variable names carry the prefix “red_”. This means, while volume-related values are usually, to be understood as m³ standing wood over bark, the prefix “red_” (“reduced”) indicates, that such wood volumes are to be understood under bark and after subtracting losses due to the harvest. This explains the variable names red_v_m3_ha, red_mai_m3_ha_yr, and red_pai_m3_ha_yr. Another peculiarity of the Bavarian table edition is the scarce information about the removal stand. For a given stand age, it provides only the harvest volume for the subsequent decade, also under bark, and after harvest, hence the name red_pre_yield_m3_ha_10yr. More information about the removal stand in yield tables will be provided (if available from other table editions such as Schober (1975)) in future versions of ForestElementsR.

## 3 Visualizing Yield Table Contents

For visualization purposes whe have written a plot method for `fe_yield_table` objects.

    # Plot the quadratic mean height (site index fan)
    fe_ytable_pine_wiedemann_moderate_1943 |> plot()

When the plot function is called without further arguments, it displays the first variable listed as `site_index_variable` in the object’s metadata. Typically this results in a display of a “site index fan”. All other variables contained in the `fe_yield_table` object can be plotted by specifiying their name in the call:

    # Plot the periodic annual increment
    fe_ytable_pine_wiedemann_moderate_1943 |> plot(variable = "pai_m3_ha_yr")

The plots are ggplot objects whose appearance can be partly modified in a post-hoc manner if required, e.g.

    # Plot the tree number per ha and modify the plot's appearance
    # 1 catch the plot
    v_plot <- fe_ytable_pine_wiedemann_moderate_1943 |> plot(variable = "n_ha")

    # 2 make adjustments as allowed by ggplot2, e.g.
    v_plot +
      ggplot2::theme_classic() +     # Appearance similar to R base graphics
      ggplot2::scale_y_log10() +     # Logarithmic scale for vertical axis
      ggplot2::ylab("Tree Number per hectare") # More explaining axis label

## 4 Practical Work With Yield Tables in ForestElementsR

### 4.1 Site Indexing

The fundamental task in working with yield tables is finding the site index of a given stand. This requires two input variables, the stand’s age, and the stand’s height, defined as (one of) the yield table’s site index variable. For the Wiedemann pine table this is the quadratic mean height in meters. The function to be used is called `site_index()`. Let’s have a look at some examples:

    ytab <- fe_ytable_pine_wiedemann_moderate_1943 # store the yield table in a
                                                   # variable with a shorter name
                                                   # for convenience

    # Assume a stand age of 73 years and a quadratic mean height of 19.7 m
    si <- site_index(age = 72, size = 19.7, ytable = ytab, si_variable = "h_q_m")
    si # The stand's relative site index according to the table
    #> [1] 2.185629
    si |> round(digits = 1) # usually relative site indexes are rounded to one digit
    #> [1] 2.2

    # Same height, but twenty years younger
    site_index(age = 52, size = 19.7, ytable = ytab, si_variable = "h_q_m") |>
      round(digits = 1)
    #> [1] 0.9

    # Same height, but thirty years older
    site_index(age = 102, size = 19.7, ytable = ytab, si_variable = "h_q_m") |>
      round(digits = 1)
    #> [1] 3.2

Input values for stand ages that are not exactly given in the table, as in the examples above, are made use of by linear interpolation between the values given in the corresponding matrix. Site index values that are outside the site index fan, are obtained by linear extrapolation. This is the case in the second example, where we obtain a site index of 0.9 which reflects better site conditions than assumed by the best site index given in the table (i.e. 1.0). If a stand age provided by the user is beyond the age coverage of the yield table (as provided in the `fe_yield_table` object’s slot `age_coverage`), a warning is issued, and the age that is internally used is set to the nearest value covered in the table:

    site_index(age = 171, size = 30.4, ytable = ytab, si_variable = "h_q_m")
    #> Warning in ytable_age_slice(age, si_variable, ytable): Selected age above
    #> coverage of the yield table Scots Pine Wiedemann 1943 Moderate Thinning. Using
    #> maximum age of yield table instead.
    #> [1] 1.261905
    site_index(age = 12, size = 9.2, ytable = ytab, si_variable = "h_q_m")
    #> Warning in ytable_age_slice(age, si_variable, ytable): Selected age below
    #> coverage of the yield table Scots Pine Wiedemann 1943 Moderate Thinning. Using
    #> minimum age of yield table instead.
    #> [1] 1.611111

Obviously, site indexing can be done on input vectors, in the following example we are doing this by way of the function `map2_dbl` from the purrr package:

    age <- c(35,   25,   120, 75,   42,    53)
    h_q <- c(14.3, 9.1, 22.2, 13.6, 11.0,  21.7)

    si_vec <- purrr::map2_dbl(
      .x = age,
      .y = h_q,
      .f = function(x, y, yt, si_v) site_index(x, y, yt, si_v),
      yt = ytab,
      si_v = "h_q_m"
    ) |>
      round(digits = 1)

    si_vec
    #> [1] 0.9 1.7 2.9 4.1 3.1 0.4

In order to convert this site index into a mean annual increment (mai) site index (German: “DGZ-Bonität”), there are two options. First, the conversion can be made to the expected mai at a given age, typically 100 years. This is achieved with the function `si_to_mai_age`:

    # Obtain the expected mean annual increment at age 100 for a stand with the
    # relative site index 1.2
    si_to_mai_age(
      si = 1.2, mai_variable = "mai_m3_ha_yr", age = 100, ytable = ytab
    )
    #> [1] 7.48

    # Do the same for the site index vector we generated above
    si_vec
    #> [1] 0.9 1.7 2.9 4.1 3.1 0.4

    purrr::map_dbl(
      .x = si_vec,
      .f = function(x, ma_v, age, yt) si_to_mai_age(x, ma_v, age, yt),
      ma_v = "mai_m3_ha_yr",
      age  = 100,
      yt   = ytab
    )
    #> [1] 7.96 6.68 4.76 3.20 4.48 8.76

The second option is not to determine the mai site index at a given age, but to take the maximum mai, that does typically occur not at the same age among different site qualities (earlier on good sites, later on poor sites). The function `si_to_mai_max` was written for that purpose:

    # Obtain the expected maximum mean annual increment for a stand with the
    # relative site index 1.2
    si_to_mai_max(
      si = 1.2, mai_variable = "mai_m3_ha_yr", ytable = ytab
    )
    #> [1] 7.74

    # Do the same for the site index vector we generated above
    si_vec
    #> [1] 0.9 1.7 2.9 4.1 3.1 0.4

    purrr::map_dbl(
      .x = si_vec,
      .f = function(x, ma_v, yt) si_to_mai_max(x, ma_v, yt),
      ma_v = "mai_m3_ha_yr",
      yt   = ytab
    )
    #> [1] 8.28 6.84 4.86 3.20 4.56 9.18

Note that in some cases, especially when extrapolating with site indexes that are above the best site covered in a yield table, the obtained mai max site index might be smaller than the mai site index obtained for an age that is near the maximum mai. Unfortunately, such subtle inconsistencies are in the very nature of yield tables in general, and cannot be avoided. In order to convert relative site indexes into absolute ones, e.g. the expected stand height at an age of 100 years, you can use the function `ytable_lookup` which is the general means to draw values out of yield tables, once the site index is known:

    # Obtain the expected stand height at age 100 for a stand with the relative
    # site index 1.2 (this actually converts a relative into an absolute site index)
    si_abs <- ytable_lookup(age = 100, si = 1.2, variable = "h_q_m", ytable = ytab)
    si_abs
    #> [1] 27.22
    si_abs |> round(digits = 1)
    #> [1] 27.2

    # Let's to this again for the whole site index vector from above.
    # Reasonably, we obtain warnings, if we use site indexes beyond range of the
    # yield table
    si_abs_vec <- purrr::map_dbl(
      .x = si_vec,
      .f = function(x, age, var, yt) ytable_lookup(age, x, var, yt),
      age = 100,
      var = "h_q_m",
      yt   = ytab
    )
    #> Warning: Site index 0.9 is outside the coverage of the yield table Scots Pine
    #> Wiedemann 1943 Moderate Thinning. Return value is extrapolated.
    #> Warning: Site index 0.4 is outside the coverage of the yield table Scots Pine
    #> Wiedemann 1943 Moderate Thinning. Return value is extrapolated.

    si_abs_vec |> round(digits = 1)
    #> [1] 28.4 25.3 20.7 15.9 19.9 30.3

### 4.2 Extracting Values From Yield Tables

The key function for extracting desired values from yield tables, once the site index is known, is `ytable_lookup` as already shown above when the task was to obtain absolute site indexes from relative ones. Let us give some more examples here:

    # Get the periodic annual increment:
    ytable_lookup(age = 100, si = 1.2, variable = "pai_m3_ha_yr", ytable = ytab)
    #> [1] 5.84

    # Try to go beyond the table's age coverage (raises warning)
    ytable_lookup(age = 170, si = 1.2, variable = "pai_m3_ha_yr", ytable = ytab)
    #> Warning in ytable_age_slice(age, variable, ytable): Selected age above coverage
    #> of the yield table Scots Pine Wiedemann 1943 Moderate Thinning. Using maximum
    #> age of yield table instead.
    #> [1] 3.88

    # ... standing volume
    ytable_lookup(age = 73, si = 2.4, variable = "v_m3_ha", ytable = ytab)
    #> [1] 280.12

    # Use a site index above the table's coverage (raises warning)
    ytable_lookup(age = 73, si = 0.4, variable = "v_m3_ha", ytable = ytab)
    #> Warning: Site index 0.4 is outside the coverage of the yield table Scots Pine
    #> Wiedemann 1943 Moderate Thinning. Return value is extrapolated.
    #> [1] 415.8

    # ... basal area
    ytable_lookup(age = 41, si = 3.4, variable = "ba_m2_ha", ytable = ytab)
    #> [1] 25.656

    # Use a site index below the table's coverage
    ytable_lookup(age = 41, si = 6.2, variable = "ba_m2_ha", ytable = ytab)
    #> Warning: Site index 6.2 is outside the coverage of the yield table Scots Pine
    #> Wiedemann 1943 Moderate Thinning. Return value is extrapolated.
    #> [1] 9.708

This way, any variable that is contained in the `fe_yield_table` object can be easily accessed. Vectorized application is available with standard R functionality (we prefer the functions from the purrr package, but the apply family of standard R works as well).

## 5 Importing Yield Table Data and Make them fe_yield_table Objects

The key function for transoforming your own data into valid and fully functional `fe_yield_table` objects is `fe_yield_table`. We will add some more explanations here; for the time being, be referred to the function’s documentation. You can access it with `?fe_yield_table`.

## References

BayMinELF. 1990. Hilfstafeln Für Die Forsteinrichtung. Zusammengestellt Für Den Gebrauch in Der Bayerischen Staatsforstverwaltung. Bayerisches Staatsministerium für Ernährung Landwirtschaft und Forsten.
———. 2018. Hilfstafeln Für Die Forsteinrichtung. Bayerisches Staatsministerium für Ernährung Landwirtschaft und Forsten.
Schober, R. 1975. Ertragstafeln Wichtiger Baumarten Bei Verschiedener Durchforstung. J. D. Sauerländer’s Verlag, Frankfurt a. M.