coerce-methods
(as(object, Class)) to convert ""
(or "" or "")
to "owin".
They are also registered as as.owin-methods to support
polyCub.midpoint.
Note that the maptools package contains an alternative implementation
of coercion from "SpatialPolygons" to "owin" (and reverse),
and R will use the S4 coerce-method that was loaded last,
and prefer the as.owin.SpatialPolygons S3-method exported from
maptools if attached.# S3 method for SpatialPolygons
as.owin(W, ...)# S3 method for Polygons
as.owin(W, ...)
# S3 method for Polygon
as.owin(W, ...)
"SpatialPolygons",
"Polygons", or "Polygon".owin.