R/evaluation.R

Defines functions eval.formulr

#'@export
eval.formulr <- function(formulr, envir, enclos=NULL) { 
  for (n in c('y','x','g')) {
    tmp <- lapply(formulr[[n]], eval, envir, enclos)
    names(tmp) <- names(formulr[[n]])
    formulr[[n]] <- tmp
  }
  class(formulr) <- c('formulr', 'eval.formulr')
  formulr
}

Try the formulr package in your browser

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

formulr documentation built on May 2, 2019, 6:52 p.m.