[R-sig-Geo] Problem with "autoKrige" Function
Pierre Roudier
pierre.roudier at gmail.com
Sat Feb 26 09:26:01 CET 2011
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
More information about the R-sig-Geo
mailing list