Skip to content
Prev 426 / 29559 Next

kriging inside borders

On Fri, 20 May 2005, Roger Bivand wrote:

            
Further to my own reply, the last line was not right:
[1] "SpatialPoints"
attr(,"package")
[1] "sp"
[1] "matrix"

so what you need is:

<my prediction locations> <- coordinates(xp[!is.na(res)])

which returns just the matrix of point coordinates without the other 
information.

This now works, using check.locations() called by krige.conv():
[1] "no"
coords.x1 coords.x2
 [1,] 2.8883985 1.5438226
 [2,] 2.1517145 1.4901741
 [3,] 0.8694240 1.9049170

...