r"><span class="no">total_apple_us</span>  <span class="kw">&lt;-</span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate-joins.html">left_join</a></span>(<span class="no">apple_us</span>,<span class="no">states_sf</span>, <span class="kw">by</span><span class="kw">=</span><span class="fu"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="st">"location"</span><span class="kw">=</span><span class="st">"state_name"</span>)) <span class="kw">%&gt;%</span>
  <span class="fu