Learn R Programming

multivarious (version 0.3.1)

check_fitted: Check if preprocessor is fitted and error if not

Description

Internal helper to provide consistent error messages when attempting to transform with unfitted preprocessors.

Usage

check_fitted(object, action = "transform")

Arguments

object

A preprocessing object

action

Character string describing the attempted action