get.mod.outcome {mmodely}R Documentation

Get the outcome variable from a model string

Description

Get the outcome variable from the front of a model formula string. Used as part of 'get.mod.clmns' to be passed to 'comp.data'

Usage

get.mod.outcome(model)

Arguments

model

a character string of a formula of the form 'y ~ x1 + x2 ...'

Value

a character string specifying the outcome variable

Examples


model.columns <- get.mod.clmns(model=formula('y ~ x1 + x2'))


[Package mmodely version 0.2.5 Index]