Learn R Programming

polyCub (version 0.5-2)

coerce-sp-methods: Coerce

Description

Package polyCub implements 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.

Usage

# S3 method for SpatialPolygons
as.owin(W, ...)

# S3 method for Polygons as.owin(W, ...)

# S3 method for Polygon as.owin(W, ...)

Arguments

W
an object of class "SpatialPolygons", "Polygons", or "Polygon".
...
further arguments passed to owin.