R Studio- Linear Regression : I am trying to use the coef function in r, however I need to know how to use this function by extracting columns from a dataset. I tried coef(rain$spring, rain$autumn) but it returned a message saying I could not use $.  The dataset is rain, the variables are spring and autumn. There is another dataset spring so I cannot simply attach the two variables.

Thanks!