Hello. I have been working with GeoDA, and have created a spatial weights file for my data. I am now looking to use R to run regressions on this data. However, I don't know and can't figure out how to get my data into R to run these regressions. I have the data in many formats, from a .dbf file to an Excel spreadsheet, but I'm not sure how to go about importing it into R. Could you help me out please? Thanks. Sincerely, Pavel Gavrilov pgavrilo at middlebury.edu
On Thu, 21 Aug 2003, Gavrilov, Pavel M wrote:> Hello. I have been working with GeoDA, and have created a spatial weights > file for my data. I am now looking to use R to run regressions on this > data. However, I don't know and can't figure out how to get my data into R > to run these regressions. > > I have the data in many formats, from a .dbf file to an Excel spreadsheet, > but I'm not sure how to go about importing it into R. Could you help me out > please? Thanks.R comes with a `Data Import/Export Manual'. Have you read it yet? -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On Thu, 21 Aug 2003, Gavrilov, Pavel M wrote:> Hello. I have been working with GeoDA, and have created a spatial weights > file for my data. I am now looking to use R to run regressions on this > data. However, I don't know and can't figure out how to get my data into R > to run these regressions. > > I have the data in many formats, from a .dbf file to an Excel spreadsheet, > but I'm not sure how to go about importing it into R. Could you help me out > please? Thanks. >The manual for such problems available from http://cran.r-project.org/doc/manuals/R-data.pdf Torsten> Sincerely, > > Pavel Gavrilov > pgavrilo at middlebury.edu > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >
On 08/21/03 12:15, Gavrilov, Pavel M wrote:>I have the data in many formats, from a .dbf file to an Excel spreadsheet, >but I'm not sure how to go about importing it into R. Could you help me out >please? Thanks.In the documents that come with R is one called "R Data Import/Export." You might take a look at that. If you can't find it, I have it on the web at http://finzi.psych.upenn.edu/R/doc/manual/R-data.html but really it should come with your distribution. -- Jonathan Baron, Professor of Psychology, University of Pennsylvania Home page: http://www.sas.upenn.edu/~baron R page: http://finzi.psych.upenn.edu/ Deleting mail that says "Approved" "Thank you!" "Your application" "Your details"
On Thu, 21 Aug 2003, Gavrilov, Pavel M wrote:> Hello. I have been working with GeoDA, and have created a spatial weights > file for my data. I am now looking to use R to run regressions on this > data. However, I don't know and can't figure out how to get my data into R > to run these regressions.GeoDa spatial weights files may be read into R using the read.gal() and read.gwt2nb() functions in the contributed package "spdep". These functions have been improved by the authors of GeoDa to play well with its output. read.geoda() in "spdep" is a wrapper for read.csv().> > I have the data in many formats, from a .dbf file to an Excel spreadsheet, > but I'm not sure how to go about importing it into R. Could you help me out > please? Thanks. >These more general questions are handled - as many have pointed out - in the data import/export manual: http://cran.r-project.org/doc/manuals/R-data.pdf> Sincerely, > > Pavel Gavrilov > pgavrilo at middlebury.edu > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no