predictor_vars: Variables out of which the predictors are constructed

View source: R/data_frames.R

predictor_varsR Documentation

Variables out of which the predictors are constructed

Description

If the object inherits from a data.frame then it is assumed the response is in the first column.

Usage

predictor_vars(object)

Arguments

object

that inherits from a data.frame or terms object

Value

vector of predicts

Examples

fit <- lm(mpg ~ .^2, data=mtcars)
predictor_vars(fit)
predictor_vars(mtcars)

paulemms/datamining documentation built on March 1, 2023, 4:01 p.m.