get.mod.vars {mmodely} | R Documentation |
Get model variable names
Description
Split the predictor string of a model formula into it's constituent character strings.
Usage
get.mod.vars(model)
Arguments
model |
a character string of a formula of the form 'y ~ x1 + x2' |
Value
a vector of character strings of variable names (e.g. corresponding to column names for comp.data input)
Examples
model.variables <- get.mod.vars(model='y ~ x1 + x2')
[Package mmodely version 0.2.5 Index]