n class="co">#&gt;   ID     Vals</span>
<span class="co">#&gt;   &lt;chr&gt; &lt;dbl&gt;</span>
<span class="co">#&gt; 1 A         4</span>
<span class="co">#&gt; 2 A        NA</span>
<span class="co">#&gt; 3 A        NA</span></code></pre></div>
<p>Alternatively, we can drop groups where all variables are all NA.</p>
<div class="sourceCode" id="cb50"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="va">test2</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rd