Re: [R-sig-Geo] To fit variogram model

2008-05-21 Thread Edzer Pebesma
Well, the answer is that this is not the way to write out and read back objects, as it will alter contents (such as representation by real or integer) and class of objects. Please use the save/load command to save/load data in binary format, or dump/source to save & read back in an ascii repre

[R-sig-Geo] To fit variogram model

2008-05-21 Thread PUJAN RAJ REGMI
Dear list, I tried to fit the model variogram to the experimental semivariogram. I used the following code: A<-read.table(file.choose(new=FALSE), sep = ",",skip=1,header=FALSE) names(A) <- c("S.N","x", "y", "B1","B2","B3","B4") library(sp) library(gstat) coordinates(A) = ~x+y C<-vari