Learn R Programming

ForestElementsR (version 2.0.1)

new_fe_species: Generic Constructor for fe_species Objects

Description

Generic Constructor for fe_species Objects

Usage

new_fe_species(x = character(), class_name)

Value

An object of class class_name if x is character and class_name is among the supported names. Otherwise, the function terminates with an error.

Arguments

x

A character vector

class_name

Name of the class to be created. Must be one of the supported names (first column of data species_codings with the prefix "fe_species_")