R/create.formula.R

Defines functions create.formula

create.formula <- function(resp.var, yx){
  
  if(is.null(yx)){
    return(NULL)
  }
  
  formula(paste(resp.var, "~", paste(setdiff(colnames(yx), resp.var), collapse = " + ")))
  
}
zhangh12/ARTP3 documentation built on Aug. 16, 2019, 7:39 p.m.