Exporting "pennLC" object stored in R as a shapefile

المشرف العام

Administrator
طاقم الإدارة
I need to export "pennLC" object stored in R as a shapefile. "pennLC" object contains different components of lung cancer dataset for Pennsylvania state such as:

  • "geo(dataframe)"
  • "data(dataframe)"
  • "smoking(dataframe)"
  • "spatial.polygon(SpatialPolygons)"
The problem is, "pennLC" has a number of components which won't be linked together when I try to export them as different tables and shapefiles using "writeOGR" or "writeSpatialShape" commands.I need "pennLC" object exported out of R as a shapefile in a way that its datasets/components are tied together.



أكثر...
 
أعلى