I am trying to use the coef function in r, and I need to know how to use this function to extract 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!
 
     
    