get.mod.vars: Get model variable names

View source: R/models.R

get.mod.varsR 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')


mmodely documentation built on May 31, 2023, 6:47 p.m.