bw2bwi2022de: Convert Preprocessed Data Back to Original Units

View source: R/bw2bwi2022de.R

bw2bwi2022deR Documentation

Convert Preprocessed Data Back to Original Units

Description

The data tree coming with this package was processed by Gerald Kaendler for the country of Baden-Wuerttemberg, and is the reference for testing as he adjusted diameter measurements to breast height where they had been measured in diverging heights (due to deformations of trees at breast height). Which we really need to do. But he did some other things we need to revert if we want to follow the standards from the federal database. He

  1. converted the diameter at breast height from millimeter to centimeter and renamed it,

  2. converted horizontal distance from centimeter to meter and renamed it.

So we add two variables holding the diameter in millimeter and the horizontal distance in centimeter, named by the output of
getOption("treePlotArea")[["angle_counts"]][["dbh"]]
and
getOption("treePlotArea")[["angle_counts"]][["distance"]]
respectively.

Usage

bw2bwi2022de(x)

Arguments

x

A tree data set, typically get(data("trees", package = "treePlotArea")).

Value

A tree data set prepared to work with the package.

See Also

Other data functions: select_valid_angle_count_trees()

Examples

trees <- get(data("trees", package = "treePlotArea"))
summary(trees)
angle_counts <- bw2bwi2022de(trees)
summary(angle_counts)

treePlotArea documentation built on June 22, 2024, 6:57 p.m.