[R-sig-Geo] problems with read.geoda

Roger Bivand Roger.Bivand at nhh.no
Mon Feb 11 11:27:03 CET 2013


Please do not post HTML - I explained yesterday how to avoid this 
nuisance.

Just use read.csv() or read.csv2() - read.geoda is only a wrapper, so if 
your CSV uses ";" instead of "," failure will follow for obvious reasons. 
Open the CSV in a text editor to see what it actually looks like, or say 
file.show() in R for a text display. I guess that from your ss name (but 
no affiliation), that you are in a German language locale, which may 
trigger spreadsheets to use ";" - for which read.csv2() is a better 
choice. The author of read.geoda, Luc Anselin, works in an English locale, 
so commas are good there, but not necessarily everywhere.

You haven't included any sample code, not the output of sessionInfo() - 
which shows your locale.

Roger

On Mon, 11 Feb 2013, Tanja Zinßer wrote:

> Hey everyone,
>
> I'm trying to create a data frame using read.geoda and a csv. document
> I get an result, but the names of my columns are missing, instead I get som
> randomly chosen names for the columnes. When I use read.csv everything is
> working as it should.
>
> Regards
> Tanja
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no


More information about the R-sig-Geo mailing list