Re: [R-sig-Geo] as.im in spatstat::ppm not working as before

2024-05-08 Thread Roger Bivand
as.im() was in maptools, which was retired last year. If you need to recreate old work, install maptools from source from the CRAN package archive https://cran.r-project.org/src/contrib/Archive/maptools/. For non-archival work, update the workflow. See also

Re: [R-sig-Geo] as.im in spatstat::ppm not working as before

2024-05-08 Thread Edzer Pebesma
r.grid.world.SGDF.F[[1]] is a numerical vector, not even a matrix, so clearly as.im.default doesn't know what it should do with it. Maybe there was once a method as.im for r.grid.world.SGDF.F, which is of class SpatialGridDataFrame, but no longer - software evolves. A way you could approach