Hello,
Apologies if this has already been asked in the discussion board, I couldn't find it if it was.
I'm having issues using the function inla.mesh.2d with the sf library (st_read). The mesh function does not work with objects with 'sf' or 'data.frame' classes, but it will work using rgdal (readOGR). I'm working on updating my lab's code to sf since rgdal is being retired in a year. Are there anyways around the error using a library that isn't rgdal?
The full error is:
Error in UseMethod("as.inla.mesh.segment") :
no applicable method for 'as.inla.mesh.segment' applied to an object of class "c('sf', 'data.frame')"
I can provide parts of my code if that would help.
-Hannah Ferriby