How to use all variable in @formula like R language?

Yes, still the best way.

Well, the way it’s written is awkward.


julia> term(:y) ~ sum(term.(names(df, Not(:y))))
FormulaTerm
Response:
  y(unknown)
Predictors:
  x1(unknown)
  x2(unknown)
1 Like