Re: [R-sig-Geo] how to extract the attribute table of shape files using R

2012-10-08 Thread Marcio Pupin Mello
Hi Elaine and Daniela, perhaps it is too late to help you, but I decided to reply aiming to help another R users with the same problem. You can #read the shapefile - for shape files, dsn is the folder path an layer is the shapefile name (without .shp) shape<-readOGR(dsn="/folder.where.

Re: [R-sig-Geo] how to extract the attribute table of shape files using R

2011-05-03 Thread Daniela Ballari
Hi Elaine, Once you have your data in R, you can use write.table (check documentation with ?write.table) write.table(dataframe, file = "dataframe.csv") If you don't have your data in R yet, you can see this document: http://cran.r-project.org/web/packages/spatstat/vignettes/shapefiles.pdf Danie

[R-sig-Geo] how to extract the attribute table of shape files using R

2011-05-03 Thread elaine kuo
Dear List, I have a polygon file describing locations of my study region. Now I want to have the attribute table exported as cvs using R. Please kindly advise which package and references are proper for this work. Thank you. Elaine [[alternative HTML version deleted]] _