Is there a better alternative than string manipulation to programmatically build formulas?
问题 Everyone else\'s functions seem to take formula objects and then do dark magic to them somewhere deep inside and I\'m jealous. I\'m writing a function that fits multiple models. Parts of the formulas for these models remain the same and part change from one model to the next. The clumsy way would be to have the user input the formula parts as character strings, do some character manipulation on them, and then use as.formula . But before I go that route, I just want to make sure that I\'m not