R/getFormulaInfo.R

Defines functions getFormulaInfo

getFormulaInfo = function(formula, data) {
  
  call = match.call()
  matchCall = match.call(expand.dots = FALSE)
  namesMatchCall = names(matchCall)
  match = match(c("formula", "data"), namesMatchCall, 0L)
  matchCall = matchCall[c(1L, match)]
  matchCall[[1]] = quote(stats::model.frame)
  matchCall = eval(matchCall, parent.frame())
  matchCallAttributes = attr(matchCall, "terms")
  
  return(list(call = call, matchCall = matchCall, namesMatchCall = namesMatchCall, match = match, matchCallAttributes = matchCallAttributes))
  
}

Try the netcmc package in your browser

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

netcmc documentation built on Nov. 10, 2022, 5:11 p.m.