R/model.frame.mixmeta.R

Defines functions model.frame.mixmeta

Documented in model.frame.mixmeta

###
### R routines for the R package mixmeta (c)
#
model.frame.mixmeta <-
function(formula, ...) {
#
################################################################################
#
  if(is.null(formula$model)) {
    fcall <- formula$call
    fcall$method <- "model.frame"
    env <- environment(formula$terms)
    if(is.null(env)) env <- parent.frame()
    eval(fcall, env)
  }
  else formula$model
}
gasparrini/mixmeta documentation built on Oct. 17, 2021, 11 a.m.