I have a polygon form file (downloadable here ) from which I want to create data.frame with three columns containing:
- Polygon ID
- latitude centroid
- Center life
From this answer here , I know that it is quite easy to get this information as a Formal Class SpatialPoints . And when I convert this object to a data.frame file, I lose the identifier information.
# Load Shapefile Legislative_areas <- readOGR(dsn = 'C:/Users/.../Downloads/Legislative2010UTM', layer ='Legislative2010UTM')
Any idea on how to save the credentials?
source share