Learn R Programming

ForestElementsR (version 2.0.1)

summary.fe_stand: Summary for an fe_stand Object

Description

Compute an overview of basic stand level variables for an fe_stand object

Usage

# S3 method for fe_stand
summary(object, ...)

Value

data.frame (tibble) resulting from applying the function stand_sums_static to object

Arguments

object

an fe_stand object

...

additional arguments, passed to stand_sums_static

Details

The summary calls the function stand_sums_static with its default settings. The result is a data.frame (tibble) with species and year wise stand sum values per ha and mean values. Stem numbers, basal areas, quadratic mean diameters and dominant diameters (d 100) are always calculated. Quadratic mean heights, dominant heights (h 100), and wood volumes are only calculated if the heights of all trees are given in object (i.e. no NA). The summary contains a column species_id. Depending on the setting of options("fe_spec_lang"), the species ids will be printed as the species code (settings NULL or "ger"), scientific, English, or German species names (settings "sci", "eng", or "ger", respectively).

See Also

stand_sums_static

Examples

Run this code

# Make a stand data.frame (or nicer, a tibble) that meets the minimum
# requirements for setting up a fe_Stand object
some_stand <- tibble::tibble(
  tree_id = as.character(c(1:100)),
  species_id = as_fe_species_tum_wwk_short(
    as.character(c(rep(1, 40), rep(5, 60)))
  ),
  time_yr = rep(2022, 100),
  dbh_cm = c(rnorm(40, 40.1, 7.3), rnorm(60, 32.8, 8.4)),
)

# Make the object
some_fe_stand <- fe_stand(
  some_stand,
  tree_id_col = "tree_id",
  species_id_col = "species_id",
  time_yr_col = "time_yr",
  dbh_cm_col = "dbh_cm",
  area_ha = 0.25
)

# The summary with different language choices
options(fe_spec_lang = "code")
summary(some_fe_stand)
options(fe_spec_lang = "sci")
summary(some_fe_stand)
options(fe_spec_lang = "eng")
summary(some_fe_stand)
options(fe_spec_lang = "ger")
summary(some_fe_stand)


# Use example stands
options(fe_spec_lang = "eng")
norway_spruce_1_fe_stand |> summary()
summary(european_beech_1_fe_stand)
options(fe_spec_lang = "sci")
summary(selection_forest_1_fe_stand)
spruce_beech_1_fe_stand |> summary()
options(fe_spec_lang = "code")
summary(selection_forest_1_fe_stand)
spruce_beech_1_fe_stand |> summary()

Run the code above in your browser using DataLab