An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20110225/6d49d826/attachment.pl>
Problem with "autoKrige" Function
2 messages · Jaime Burbano Girón, Pierre Roudier
Jaime, "Prec" has to be the name of one of the columns of X. What does names(X) gives you? Pierre 2011/2/26 Jaime Burbano Gir?n <jaimebg27 at gmail.com>:
Hi everybody. I?m trying to explore kriging performance for some runoff
interpolations and I?m using "autoKrige" function from package "automap".
Following the examples for function I?ve run Ordinary Kriging and Universal
Kriging, but when I try to run ?"Drift, Regression or Universal Kriging"
with variables different from "x" and "y" I get this error:
"Error en eval(expr, envir, enclos) : objeto 'Prec' no encontrado" (R is in
Spanish), which says that the object 'Prec' was not found. My code is:
X=read.csv("F:/Rancheria/EscPrecDEM.csv")
coordinates(X)=~x+y
Grid=read.table("F:/Rancheria/puntos_prediccion.txt")
coordinates(Grid)=~x+y
autoKrige(Anual~Prec+Altura, X, Grid)
I?ve tried renaming the variables to the same names of data "meuse", to
follow exactly the example of the function:
autoKrige(zinc~soil+ffreq, meuse, meuse.grid)
but I still getting the same error. If someone can help me with this I?ll be
so grateful. Thanks in advance.
--
Jaime Burbano Gir?n
Departamento de Ecolog?a y Territorio
Pontificia Universidad Javeriana
Bogot? - Colombia
(571) 3208320 Ext. 4836
? ? ? ?[[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
Scientist Landcare Research, New Zealand