R/models.R

Defines functions .split.model.args .get.model.args .get.model.out

.get.model.out <- function(model) {as.character(as.formula(model))[2]}
.get.model.args <- function(model) {strsplit(x=as.character(as.formula(model))[3],split=' *\\+ *')[[1]]}

.split.model.args <- function(formula.term.3) strsplit(formula.term.3, '[ *|]+')[[1]]

#.get.model.predictors <- function(formula.term.3){   

# TODO: model checks and validation w/ warnings and error calls

Try the caroline package in your browser

Any scripts or data that you put into this service are public.

caroline documentation built on Oct. 21, 2024, 9:06 a.m.