Learn R Programming

ForestElementsR (version 2.0.1)

validate_fe_stand: Validate an fe_stand Object

Description

Regular users will not require this function. Expert users will want to use it in combination with the constructor new_fe_stand. Regular users, please construct fe_stand objects with fe_stand.

Usage

validate_fe_stand(x)

Value

Returns x, but this function is mainly called for its side effect which is pointing out any violations of the fe_stand object specifications. In case of such violations, the function will terminate with an error.

Arguments

x

An object that is expected to be a correct fe_stand object

Examples

Run this code
# Validate the example stands
validate_fe_stand(norway_spruce_1_fe_stand)
validate_fe_stand(european_beech_1_fe_stand)
validate_fe_stand(spruce_beech_1_fe_stand)
selection_forest_1_fe_stand |> validate_fe_stand()

Run the code above in your browser using DataLab