title: R - Leaflet Code "Error in mutate_impl(.data, dots) : object 'address.lon' not found"
body: <p>I'm trying to re-appropriate a Leaflet code I used six months ago, with which I had no problem at the time. I haven't used Leaflet since then and am now no longer able to generate maps like I was before. </p>
  
  <p>Simply put, after switching out the variables in the same way I have for many other maps 6 months ago, I am receiving the following error message and am not sure how to fix it: <em>Error in mutate_impl(.data, dots) : object 'address.lon' not found</em></p>
  
  <p>I loaded the appropriate packages and data formats. Basic troubleshooting has been addressed. How do I fix this?</p>
  
  <p>The contextual code is the following:</p>
  
  <pre><code>Example Data
  org dept address latitude longitude
  ABC, Inc., SPSG, 111111 North Whatever Houston, TX 77058, 29.5431888, -95.1023828
  DEF, Inc., Security Systems, 111 North Sepulveda boulevard 2000 El Segundo, CA 90245, 42.6379953, -71.2459721
  
  
  df %&gt;%  
  mutate(popup_info=paste(sep = "&lt;br/&gt;", paste0("&lt;b&gt;","&lt;i&gt;", org,"&lt;i&gt;", "&lt;/b&gt;"), dept)) %&gt;% 
  filter(!is.na(longitude) &amp; !grepl("CLOSED", org)) %&gt;% 
  filter(!is.na(latitude) &amp; !grepl("CLOSED", org)) -&gt; df1
  
  ## Plot the Maps
  # Client Map
  orgpal &lt;- colorFactor(plasma(7), df1$org) 
  leaflet(df1) %&gt;%
  addProviderTiles("CartoDB.Positron") %&gt;%
  addCircleMarkers(lng = ~longitude, 
                 lat = ~latitude, 
                 radius = 2.5, 
                 fillColor = ~orgpal(orgpal),
                 stroke=FALSE,
                 fillOpacity = 1,
                 popup = ~popup_info) %&gt;%
  addLegend("bottomright", pal = orgpal, values = ~org, labels = "Organization", title = "Client Locations") %&gt;%
  addMiniMap(tiles = providers$CartoDB.PositronNoLabels, width = 120, height=80)
  </code></pre>
  
  <p>Am I misunderstanding the function of address.lon? I apologize if my lack of understanding of coding prevents me from seeing an easy fix, I just haven't interacted with this code in a while. I appreciate any help I can receive.</p>