I wonder if it would be possible to make data.table compatible with the new sf library. The library sf is promising to be a game changer for spatial analysis in R so it sounds like good idea to bring together the power of both libraries.
Currently, the class of an sf object is "sf" "data.frame" and it brings a column named geometry of class "sfc_MULTIPOLYGON" "sfc" .
Right now, I think the main incompatibility between dt and sf is that when we convert an sf data.frame into a data.table using setDT(), the geometry column is ruined and the object is not recognised anymore as an sf class.
I'm sure there are other points to take into account when making these two great libraries together so I just wanted to put the ball rolling if someone has not done this before.
I wonder if it would be possible to make
data.tablecompatible with the newsflibrary. The librarysfis promising to be a game changer for spatial analysis inRso it sounds like good idea to bring together the power of both libraries.Currently, the class of an
sfobject is"sf" "data.frame"and it brings a column namedgeometryof class"sfc_MULTIPOLYGON" "sfc".Right now, I think the main incompatibility between dt and sf is that when we convert an
sfdata.frame into adata.tableusingsetDT(), the geometry column is ruined and the object is not recognised anymore as ansfclass.I'm sure there are other points to take into account when making these two great libraries together so I just wanted to put the ball rolling if someone has not done this before.