select_metrics function

Select columns with evaluation metrics and model definitions

Select columns with evaluation metrics and model definitions

lifecycle::badge("maturing")

When reporting results, we might not want all the nested tibbles and process information columns. This function selects the evaluation metrics and model formulas only.

If an expected column is not in the results tibble, it is simply ignored.

select_metrics(results, include_definitions = TRUE, additional_includes = NULL)

Arguments

  • results: Results tibble. E.g. from cross_validate() or evaluate().
  • include_definitions: Whether to include the Dependent, Fixed and (possibly) Random and HParams columns. (Logical)
  • additional_includes: Names of additional columns to select. (Character)

Returns

The results tibble with only the metric and model definition columns.

Author(s)

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk

  • Maintainer: Ludvig Renbo Olsen
  • License: MIT + file LICENSE
  • Last published: 2025-03-07