Skip to content
Prev 25061 / 29559 Next

Kriging in gstat - "number of rows in data.frame and SpatialPoints don't match" error

Hi Anna,

The problem seems to be this line:
 > grd <- as(grid, "SpatialPixelsDataFrame")
as the grid doesn't have any data except for the coordinates.
Try instead with:
 > grd <- as(grid, "SpatialPixels")

Cheers,
Jon
On 11/8/2016 3:50 PM, Anna Szyniszewska wrote:

  
    
Message-ID: <a67c4302-33a8-3e5e-3ae4-12b7202a6808@jrc.ec.europa.eu>
In-Reply-To: <AM4PR0101MB2164EE531A401594864A1D00D6A60@AM4PR0101MB2164.eurprd01.prod.exchangelabs.com>