title: Zero divison in R
body: <p>Is there an easy way of avoiding 0 division error in R. Specifically,</p>
  
  <pre><code>a &lt;- c(1,0,2,0)
  b &lt;- c(3,2,1,0)
  sum(b/a)
  </code></pre>
  
  <p>This code gives an error due to division by zero. 
  I would like a way to define anything/0 = 0 so that this kind of operation would still be valid.</p>