wkb
Convert between the Spatial classes specified by the package sp and
the well-known binary (WKB) representation for geometry specified by the
Open Geospatial Consortium.
Convert between the Spatial classes specified by the package sp and
the well-known binary (WKB) representation for geometry specified by the
Open Geospatial Consortium.
install.packages('wkb')