title: Combining Rows - Summing Certain Columns and Not Others in R
body: <p>I have a data set that has repeated names in column 1 and then 3 other columns that are numeric.</p>
  
  <p>I want to combine the rows of repeated names into one column and sum 2 of the columns while leaving the other alone. Is there a simple way to do this? I have been trying to figure it out with sapply and lapply and have read a lot of the Q&amp;As here and can't seem to find a solution</p>
  
  <pre><code>Name &lt;- c("Jeff", "Hank", "Tom", "Jeff", "Hank", "Jeff",
                         "Jeff", "Bill", "Mark")
  data.Point.1 &lt;- c(3,4,3,3,4,3,3,6,2)
  data.Point.2 &lt;- c(6,9,2,5,7,4,8,2,9)
  data.Point.3 &lt;- c(2,2,8,6,4,3,3,3,1)
  data &lt;- data.frame(Name, data.Point.1, data.Point.2, data.Point.3)
  </code></pre>
  
  <p>The data looks like this:</p>
  
  <pre><code>  Name data.Point.1 data.Point.2 data.Point.3
  1 Jeff            3            6            2
  2 Hank            4            9            2
  3  Tom            3            2            8
  4 Jeff            3            5            6
  5 Hank            4            7            4
  6 Jeff            3            4            3
  7 Jeff            3            8            3
  8 Bill            6            2            3
  9 Mark            2            9            1
  </code></pre>
  
  <p>I'd like to get it to look like this (summing columns 3 and 4 and leaving column 1 alone. I'd like it to look like this:</p>
  
  <pre><code>  Name data.Point.1 data.Point.2 data.Point.3
  1 Jeff            3           23           14
  2 Hank            4           16            6
  3  Tom            3            2            8
  8 Bill            6            2            3
  9 Mark            2            9            1
  </code></pre>
  
  <p>Any help would great. Thanks!</p>