A small helper function to convert a disProg
object to become
an object of the S4 class sts
and vice versa. In the future the
sts
should replace the disProg
class, but for now this
function allows for conversion between the two formats.
disProg2sts(disProgObj, map=NULL)
sts2disProg(sts)
an object of class "sts"
or "disProg"
, respectively.
an object of class "disProg"
an optional "SpatialPolygons"
object
an object of class "sts"
to convert
sts-class
data(ha)
print(disProg2sts(ha))
class(sts2disProg(disProg2sts(ha)))
Run the code above in your browser using DataLab