OptimisedClasses: Get optimized classes from an imported optpar.txt file

View source: R/function_OptimisedClasses.R

OptimisedClassesR Documentation

Get optimized classes from an imported optpar.txt file

Description

OptimisedClasses checks which classes (land use or soil) of parameters in an imported optpar list are actually optimized, i.e. have a min/max range larger than zero.

Usage

OptimisedClasses(x)

Arguments

x

list with named elements, as an object returned from ReadOptpar.

Details

OptimisedClasses allows to quickly check which classes of parameters in an optpar.txt file are actually optimized during a HYPE optimization run. The function compares min and max values in the pars element of an imported HYPE optpar.txt file to identify those.

Value

OptimisedClasses returns a named list with one vector element for each parameter found in x. List element names are HYPE parameter names. Each vector contains the optimized class numbers for the respective parameter.

Examples

te <- ReadOptpar(filename = system.file("demo_model", "optpar.txt", package = "HYPEtools"))
OptimisedClasses(te)


HYPEtools documentation built on Sept. 11, 2024, 8:34 p.m.