vdist.Rout.save
R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(sp)
> library(gstat)
>
> data(meuse)
> coordinates(meuse) = ~x+y
> data(meuse.grid)
> gridded(meuse.grid) = ~x+y
>
> mg = meuse.grid
> gridded(mg) = FALSE
> mg= mg[1500,]
> krige(log(zinc)~1,meuse,mg,vgm(1, "Exp", 300, anis=c(0,0.01)),
+ vdist=FALSE, maxdist=1000,nmax=10)
[using ordinary kriging]
coordinates var1.pred var1.var
1500 (180260, 331300) 5.007376 1.102622
> krige(log(zinc)~1,meuse,mg,vgm(1, "Exp", 300, anis=c(0,0.01)),
+ vdist=TRUE, maxdist=1000,nmax=10)
[using ordinary kriging]
coordinates var1.pred var1.var
1500 (180260, 331300) 5.50671 1.100095
>
> proc.time()
user system elapsed
1.308 0.052 1.370