AC Del Re wrote: > Hi David, > > I don't have the function in order yet but the names will be going into the > formula, e.g., > > in body of function: > > { > ...etc > out <- lm( y ~ TEMP) # where TEMP = mod1+mod2 (from previous post) > return(out) > } > So why not just pass the formula to the function?