Statistical functions in R make heavy use of the so-called Wilkinson-Rogers formula notation1 .
When running model functions like lm for the Linear Regressions, they need a formula. This formula specifies which regression coefficients shall be estimated.
my_formula1 <- formula(mpg ~ wt)
class(...