FunctionalGroup {growR}R Documentation

Representation of a grassland plant population

Description

A functional group is a representation of a grassland plant population with certain functional attributes.

It contains many plant parameters that are collected under the hood of functional groups. The class implements S3 style operator overloading such that one can do things like

mixed_functional_group = 0.8 * FG_A + 0.2 * FG_B

Public fields

Default values for parameters are taken from functional group A in Jouven et al.

Public fields

fg_parameter_names

Names of the vegetation parameters governed by functional group composition.

Methods

Public methods


Method new()

Constructor

Usage
FunctionalGroup$new(...)
Arguments
...

Key-value pairs of parameters to be set.


Method get_parameters()

Convenient getter

Returns all parameters with their names in a list.

Usage
FunctionalGroup$get_parameters()

Method get_parameters_ordered()

Ordered getter

Returns all parameters in reproducible order in a vector.

Usage
FunctionalGroup$get_parameters_ordered()

Method set_parameters()

Convenient setter

Set all specified parameters.

Usage
FunctionalGroup$set_parameters(...)
Arguments
...

Key-value pairs of parameters to be set.


Method set_parameters_ordered()

Efficient setter, assumes parameters come in known order.

Usage
FunctionalGroup$set_parameters_ordered(ordered_parameter_values)
Arguments
ordered_parameter_values

Parameter values to be set. Need to be in the same order as pFunctionalGroup]⁠$fg_parameter_names⁠.


Method clone()

The objects of this class are cloneable with this method.

Usage
FunctionalGroup$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

References

Jouven M, Carrère P, Baumont R (2006). “Model Predicting Dynamics of Biomass, Structure and Digestibility of Herbage in Managed Permanent Pastures. 1. Model Description.” Grass and Forage Science, 61(2), 112–124. ISSN 1365-2494, doi:10.1111/j.1365-2494.2006.00515.x, https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1365-2494.2006.00515.x.


[Package growR version 1.2.0 Index]