a></span><span class="op">(</span><span class="st">"us_residential"</span><span class="op">)</span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="co"># Subsetting the total consumption in the US</span></span></span>
<span class="r-in"><span></span></span>
<span class="r-in"><span><span class="va">us_res_total</span> <span class="op">&lt;-</span> <span class="va">us_residential</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/which.