title: Calculate row sum but exclude a column in R
body: <p>I want to calculate the sum of the columns, but exclude one column.How can I specify what column to exclude while adding the sum of each row. </p>
  
  <pre><code>hd_total&lt;-rowSums(hd) #hd is where the data is that is read is being held 
  hn_total&lt;-rowSums(hn)
  </code></pre>