title: How to apply a condition in sf object in R?
body: <pre><code>Assuming this data here
  
  library(sf)
  fname &lt;- system.file(&quot;shape/nc.shp&quot;, package=&quot;sf&quot;)
  nc &lt;- st_read(fname)
  </code></pre>
  <p>If in geomtry lat is &gt; 32 and &lt; 33, then rename all corresponding  &quot;Ashe&quot; in the  filed NAME to &quot;new&quot;</p>