Using all variables on a regression?

Is there any way to quickly say Julia I want to use all variables on a regression’s formula without explicitly writing them by hand?
(Something like R’s “.” to select all columns for the model)
It’s useful when you have many variables.
How can you do it if you also want to add interactions?

lm(@formula(y ~ .), data)

2 Likes