I'm new to R so I only have a basic understanding of the language, but I have a question about linear regressions. Say I have a table that looks like this:
| Number | V4 | V92 | 
|---|---|---|
| 12 | 4 | .1 | 
| 14 | 6 | .5 | 
| 16 | 8 | .25 | 
| 13 | 5 | .05 | 
| 12 | 7 | .2 | 
| 13 | 5 | .4 | 
I want to create a new table where I first group by number - there are many datapoints here with many per 'number' - then take what the linear regression would be for V4,V92. How do I do this in one new table? I know how to do it one number at a time, but whats a quick way to make a new table where the columns are number, quantity and linear regression.
Thanks!!
 
     
    