response.var: TODO: remove this Get response variable

View source: R/data_frames.R

response.varR Documentation

TODO: remove this Get response variable

Description

This works for

Usage

response.var(object)

Arguments

object

formula, model frame, or fitted model

Value

the name of the response variable

Examples

response.var(a ~ b + c)
response.var(~ b + c) # gives '.'
response.var(Height + Volume ~ Girth) # incorrect
response.var(log(Volume) ~ Girth) # incorrect


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