R/create.formula.R

create.formula <- function(resp.var, yx){
  
  if(is.null(yx)){
    return(NULL)
  }
  
  formula(paste(resp.var, "~", paste(setdiff(colnames(yx), resp.var), collapse = " + ")))
  
}

Try the ARTP2 package in your browser

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

ARTP2 documentation built on May 2, 2019, 3:38 p.m.