Learn R Programming

modeltests (version 0.1.6)

acceptable_augment_colnames: Determine acceptable names for augment output

Description

Given a data frame (or tibble), and a model object, makes a character vector of acceptable columns names for augment output. This includes:

  • Any column names of the passed dataset

  • Any syntactically correct column names generated by calling stats::model.frame() on the object in question.

Usage

acceptable_augment_colnames(object, passed_data)

Value

A vector of colnames that are acceptable in augment output.

Arguments

object

A model object.

passed_data

The dataset used to create the model object.