powered by
Split the predictor string of a model formula into it's constituent character strings.
get.mod.vars(model)
a vector of character strings of variable names (e.g. corresponding to column names for comp.data input)
a character string of a formula of the form 'y ~ x1 + x2'
model.variables <- get.mod.vars(model='y ~ x1 + x2')
Run the code above in your browser using DataLab