[R] R ON Mac
Adelchi Azzalini
azzalini at stat.unipd.it
Thu Jan 14 16:17:40 CET 2010
On Thu, 14 Jan 2010 07:07:49 -0800 (PST), Corey Sparks wrote:
CS>
CS> Hi, it appears that your corrdinates contain commas, instead of
CS> decimal points, R sees the commas and immediatly thinks the data
CS> are text, you should replace the commas with decimal points in a
CS> text editor.
CS>
or keep the data as they are, and use the dec parameter, as in
gyliai<-read.table(file.choose(),header=T, dec=",")
CS> Corey
CS>
CS> gedasg wrote:
CS> >
CS> > hello, I have strange error.
CS> >
CS> > > gyliai<-read.table(file.choose(),header=T)
CS> >> summary(gyliai)
CS> > x y gylis
CS> > 307577,08: 1 6124296,56: 1 3,00 : 59
CS> > 308613,01: 1 6124353,50: 1 2,80 : 51
CS> > 313800,45: 1 6124530,65: 1 3,10 : 36
CS> > 313840,17: 1 6124970,20: 1 2,90 : 32
CS> > 313864,05: 1 6124991,68: 1 2,70 : 22
CS> > 313869,26: 1 6125009,34: 1 3,43 : 5
CS> > (Other) :393 (Other) :393 (Other):194
CS> >> coordinates(gyliai)=~x+y
CS> > Error in .checkNumericCoerce2double(obj) :
CS> > cannot retrieve coordinates from non-numeric elements
CS> >
CS> > Your version of R is up to date
CS> >
CS> >
CS> > Error in .checkNumericCoerce2double(obj) :
CS> > cannot retrieve coordinates from non-numeric elements - whats
CS> > is that ????
CS> >
CS> > I use Gstat, mass, and sp packages. any ideas why this error
CS> > shows to me? I check it on windows couple days ago it worked
CS> > fine, but not on my mac, I don't have windows pc at the moment :)
CS> > so help me :)
CS> >
CS> > Gedas
CS> >
CS>
More information about the R-help
mailing list