Learn R Programming

ForestElementsR (version 2.0.1)

new_fe_yield_table: Constructor for the fe_yield_table Class

Description

Provided for expert users only who know exactly what they are doing. Other users please take the function fe_yield_table for creating an object of that class.

Usage

new_fe_yield_table(x = list())

Value

An object of class fe_yield_table

Arguments

x

An appropriate list object

Examples

Run this code
  # Some highly motivated object, even a list
  x <- list(my_dream = "I want to be a yield table!")
  x <- new_fe_yield_table(x) # let's help the guy
  is_fe_yield_table(x)       # nice - it worked?!

  # But here's the error. That's why you should not use the bare constructor
  # if you don't know what you are doing.
  try(
    validate_fe_yield_table(x)
  )

Run the code above in your browser using DataLab