Learn R Programming

cvms (version 0.2.0)

select_metrics: Select columns with evaluation metrics and model definitions.

Description

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.

Usage

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

Arguments

results

Results tibble from cross_validate() or validate().

include_definitions

Whether to include the Dependent, Fixed and (possibly) Random columns. (Logical)

additional_includes

Names of additional columns to select. (Character)

Value

The results tibble with only metric and model definition columns.

Details

The first element in the Family column is used to identify the relevant columns.