Learn R Programming

ForestElementsR (version 2.0.1)

validate_fe_stand_spatial: Validate an fe_stand_spatial Object

Description

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

Usage

validate_fe_stand_spatial(x)

Value

Returns x, but this function is mainly called for its side effect which is pointing out any violations of the fe_stand_spatial

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_spatial object

Examples

Run this code
  # Validate the example fe_stand_spatial object
  mm_forest_1_fe_stand_spatial |> validate_fe_stand_spatial()

Run the code above in your browser using DataLab