Learn R Programming

cvms (version 0.2.0)

reconstruct_formulas: Reconstruct model formulas from results tibbles

Description

In the results tibble from cross_validate and validate, the model formulas have been split into the columns Dependent, Fixed and Random. Quickly reconstruct the model formulas from these columns.

Usage

reconstruct_formulas(results, topn = NULL)

Arguments

results

Data frame with results from cross_validate() or validate(). (tbl)

Must contain at least the columns "Dependent" and "Fixed". For random effects the "Random" column should be included.

topn

Number of top rows to return. Simply applies head() to the results tibble.

Value

List of model formulas.