acceptable_augment_colnames: Determine acceptable names for augment output

View source: R/utils.R

acceptable_augment_colnamesR Documentation

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)

Arguments

object

A model object.

passed_data

The dataset used to create the model object.

Value

A vector of colnames that are acceptable in augment output.


alexpghayes/modeltests documentation built on May 8, 2024, 1:28 p.m.