Skip to content
Prev 246720 / 398506 Next

Cross validation for Ordinary Kriging

Pearl,

The error suggests that there is something wrong with x2, and that there 
is a difference between the row names of the coordinates and the data. 
If you call
str(x2)
see if the first element of @coords is different from NULL, as this can 
cause some problems when cross-validating. If it is, try to figure out 
why. You can also set the row.names equal to NULL directly:
row.names(x2 at coords) = NULL
although I dont think such manipulation of the slots of an object is 
usually recommended.

Cheers,
Jon

BTW, you will usually get more response to questions about spatial data 
handling using the list r-sig-geo 
(https://stat.ethz.ch/mailman/listinfo/r-sig-geo)
On 1/6/2011 4:00 PM, pearl may dela cruz wrote: