span class="cn">NA</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu">coalesce</span><span class="op">(</span><span class="va">x</span>, <span class="fl">0</span><span class="op">)</span></span></span>
<span class="r-out co"><span class="r-pr">#&gt;</span> [1] 1 2 3 0 0</span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Or match together a complete vector from missing pieces</span></span></span>
<span class="r-in"><span><span class