ObjFct2Text {ModelDataComp}R Documentation

Convert objective functions to text

Description

Converts an object of class ObjFct to text string.

Usage

ObjFct2Text(x, which = c("Cor", "RMSE", "MEF"), sep = ", ", digits = 2)

Arguments

x

an object of class ObjFct

which

which objective function metrics should be written as text?

sep

separation between metrics

digits

digits for rounding

Details

Converts an object of class 'ObjFct' to text string.

Author(s)

Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]

References

No reference.

See Also

ObjFct

Examples


obs <- rnorm(100) # "observations"
sim <- obs + rnorm(100, 0, 0.8) # simulation
of <- ObjFct(sim, obs)
of

# convert objective functions to text:
ObjFct2Text(of)
ObjFct2Text(of, which="KGE")
ObjFct2Text(of, which=c("R2", "MEF", "KGE"), sep=" ")


[Package ModelDataComp version 1.03 Index]