[R-sig-Geo] exporting Geoda data to R

Corey Sparks corey.sparks at UTSA.EDU
Tue Sep 30 14:40:16 CEST 2008


Have you tried just reading the shapefile directly into R using the  
readShapePoly command in maptools.  spdep can form the neighbors and  
weights matrices from the shapefile, then you don't have to bother  
with the export.
Corey

On Sep 30, 2008, at 5:00 AM, r-sig-geo-request at stat.math.ethz.ch wrote:
>
> Message: 1
> Date: Mon, 29 Sep 2008 13:57:02 -0400
> From: "Mike McManus" <mmcmanus at TNC.ORG>
> Subject: [R-sig-Geo] exporting Geoda data to R
> To: <r-sig-geo at stat.math.ethz.ch>
> Message-ID: <09E0E729716950479036D63B11FDA76A40E136 at mail04.TNC.ORG>
> Content-Type: text/plain
>
> I  have exported data from Geoda to R in the past just fine.  However,
> with a file I am working on today when I used the Tools > Data Export
>> ASII in Geoda not all of the variable names in the file are listed  
>> for
> export.  Does anyone know why this might be happening?  I need to  
> bring
> that file, and its associated spatial weights, into spdep in R.   
> Could I
> by-pass the Geoda export step by saving the .dbf as a .csv file and  
> read
> that data file with the read.csv function and then read the .gal  
> spatial
> weights file with the read.gal function?
> Thanks,
> Mike
>
> Michael McManus
> Senior Aquatic Ecologist
> The Nature Conservancy
>
>
> 	[[alternative HTML version deleted]]
>
>

Corey Sparks
Assistant Professor
Department of Demography and Organization Studies
College of Public Policy
One UTSA Circle
San Antonio, TX 78239
corey.sparks at utsa.edu




More information about the R-sig-Geo mailing list