Hello,
I used arc.open() to read a .gdb polygon feature class read into R. I would like to convert the object to a spatialPolygonsDataFrame with the arc.data2sp function. The function fails, however, with the following message:
> nhdSp <- arc.data2sp(nhd)Error: inherits(x, "arc.data") is not TRUE
Turns out the object is of class 'arc.feature_impl',
> class(nhd)[1] "arc.feature_impl" attr(,"package") [1] "arcgisbinding"
whereas arc.data2sp() requires objects of class 'arc.data'. How can I coerce my object to class 'arc.data' for use with the arc.data2sp() function?