Learn R Programming

ForestElementsR (version 2.0.1)

summary_fe_species: Generic Summary for fe_species Objects

Description

Produces a summary for a fe_species object in the same style as R does factors. Actually, after some conversions summary.factor is called by this function. The species naming in the summary depends on the parameter spec_lang.

Usage

summary_fe_species(
  x,
  spec_lang = c("code", "eng", "ger", "sci"),
  maxsum = 100L
)

Value

A named vector in the same style as returned by summary.factor

Arguments

x

Object of one of the supported fe_species_ classes

spec_lang

Choice of how species (group) names or id's are displayed. Supported choices are "code" (default, displays the species codes as they are), "eng" (English species names), "ger" (German species names), and "sci" (scientific species names). The names and the codes refer to the species coding given in the object's attribute species_coding.

maxsum

Same as parameter maxsum in summary.factor