title: R's equivalent of numpy where
body: <p>What's the R way of doing (in Python numpy)</p>
  
  <pre><code>np.where(b &gt; 0, a, a+1)
  </code></pre>
  
  <p>for equal length numeric vectors <code>a</code> and <code>b</code>?</p>