Learn R Programming

supernova (version 3.0.0)

variables: Extract the variables from a model formula

Description

Extract the variables from a model formula

Usage

variables(object)

# S3 method for supernova variables(object)

# S3 method for formula variables(object)

# S3 method for lm variables(object)

# S3 method for lmerMod variables(object)

Value

A list containing the outcome and predictor variables in the model.

Arguments

object

A formula, lm or supernova object