R/get_formula_stuff.R

Defines functions get_formula_stuff

	get_formula_stuff<-function(formula, data){
	  gp         <- interpret.formula(formula.object = formula)
	  mf         <- match.call(expand.dots = FALSE)
	  m          <- match(c("formula", "data"), names(mf), 0L)
	  mf         <- mf[c(1L, m)]
	  mf$formula <- gp$fake.formula
	  mf$drop.unused.levels <- TRUE
	  mf[[1]]    <- as.name("model.frame")
	  mf         <- eval(mf)
	  list(gp = gp, formula = formula, mf = mf)
	}

Try the smnet package in your browser

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

smnet documentation built on Nov. 9, 2020, 9:06 a.m.