ef="../reference/pipe.html">%&gt;%</a></span> <span class="fu"><a href="https://rdrr.io/r/base/logical.html" class="external-link">as.logical</a></span><span class="op">(</span><span class="op">)</span><span class="op">)</span></span>
<span><span class="co">#&gt; [1] TRUE</span></span></code></pre></div>
<p>This example demonstrates that energy balance can be verified for
<em>all</em> combinations of Country and Year with a few lines of code.
In fact, the exact same code can be applied to the <code>Energy</