title: Obtaining Latitude and Longitude with from Spatial objects in R
body: <p>I want to obtain the latitude and longitude from a shapefile. Until now, I only know how to read the shapefile. </p>
  
  <pre><code>library(rgdal)
  centroids.mp &lt;- readOGR(".","35DSE250GC_SIR")
  </code></pre>
  
  <p>But how I can extract the latitude and longitude from centroids.mp?</p>