title: How do I overwrite data with dplyr?
body: <pre><code>df &lt;- data.frame(a = c(1, 2, 3), b = c(4, 5, 6))
  #&gt;   a b
  #&gt; 1 1 4
  #&gt; 2 2 5
  #&gt; 3 3 6
  </code></pre>
  
  <p>I figured out how to overwrite data with base R. Maybe that was day 1 of learning R.</p>
  
  <pre><code>df[2:3, 2] &lt;- c(50, 60)
  #&gt;   a b
  #&gt; 1 1 4
  #&gt; 2 2 50
  #&gt; 3 3 60
  </code></pre>
  
  <p>I never found an easy way to do it with dplyr. How do I overwrite data with the pipe <code>%&gt;%</code>?</p>