[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]]

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

Re: [R-sig-Geo] rgdal installation problem

2011-05-03 Thread Robin W Hunnewell
Hi,Could you - or any other mac users who've been successful installing rgdal - elaborate how you did it?I'm trying to install rgdal in my iMac (os X 10.6.7). I have latest Mac R app. version 2.13.0.I downloaded theGDAL framework 1.8 and its dependencies from the kyngchaos site -- under the GDAL

Re: [R-sig-Geo] rgdal installation problem

2011-05-03 Thread Roger Bivand
On Tue, 3 May 2011, Robin W Hunnewell wrote: Hi,  Could you - or any other mac users who've been successful installing rgdal - elaborate how you did it?  Usually, OSX users say setRepositories(ind=1:2) to install from CRAN and CRAN extras, where OSX binaries for R 2.13 are provided by

Re: [R-sig-Geo] rgdal installation problem

2011-05-03 Thread Christopher Fusting
Hey, You need to download the 'rgdal' zip for your version (2.13.0) of r ( http://www.kyngchaos.com/files/software/frameworks/rgdal-0.6.33-2.zip). Unzip, open the r package installer and change CRAN to 'local binary package' and select the .tgz file you unzipped earlier. This is detailed in the

Re: [R-sig-Geo] spsample taking excessive memory

2011-05-03 Thread Roger Bivand
On Sat, 30 Apr 2011, Dylan Beaudette wrote: On Friday, April 29, 2011, Ned Horning wrote: Hi - I am trying to select 1000 random samples from each set of ESRI Shapefile polygons with the same attribute value (attName). This has worked well in the past with other shapefiles. The file I'm using

Re: [R-sig-Geo] rgdal installation problem

2011-05-03 Thread Roger Bivand
On Tue, 3 May 2011, Robin W Hunnewell wrote: Thank you.  sorry if this is basic; had just hoped to find a step-by-step guide for Idiots on how to install GDAL and rgdal on OSX.  I downloaded the comprehensive GDAL framework provided by William Kyngesburye: http://www.kyngchaos.com/ Help

Re: [R-sig-Geo] rgdal installation problem

2011-05-03 Thread António M . Rodrigues
Hi, I had previously installed the rgdal from William Kyngesburye but still got an error. However, Roger's suggestion worked fine. Note: I previously installed the gdal1.8 from kyngchaos.com António What worked was 2011/5/3 Roger Bivand roger.biv...@nhh.no On Tue, 3 May 2011, Robin W

Re: [R-sig-Geo] spacetime : adding a fourth (spectral) dimension

2011-05-03 Thread scizmeli
I am reflecting on a data structure that will allow us to perform all kinds of spectral operations we normally do in remote sensing. Due to lack of an appropriate data structure supporting spatially based spectral data, right now we have to keep our data in non-georeferenced N-dimensional arrays.