title: How to do a regression of a series of variables without typing each variable name
body: <p>I want to run a regression with a bunch of independent variables from my dataset.  There are a lot of predictors, so I do not want to write them all out. Is there a notation to span multiple columns so I don't have to type each? </p>
  
  <p>My attempt was doing this (where my predictors are column 20 to 43):</p>
  
  <pre><code>modelAllHexSubscales = lm(HHdata$garisktot~HHdata[,20:43])
  </code></pre>
  
  <p>Obviously, this does not work because <code>HHdata[,20:43]</code> is a matrix of data, whereas I really need it to see the data as <code>HHdata[,20]+HHdata[,21]</code> etc.</p>