Collecting and Handling Point Pattern Data 79
There are two different ways to convert an object of class "SpatialPolygons". The first is
to combine all the polygona l regions togeth er into a single polygon al region, and convert this to a
single object of c la ss "owin". For example, we could combine all the States of the USA together
and obtain a single object tha t r epresents the territory of the USA. To do this, use as(x, "owin")
or as.owin(x). Th e result is a single window (o bject of class "owin") in the spatstat package.
The second way is to keep the different polygonal regions separate, and convert each one of the
polygonal regions to an object of class "owin". For example, we co uld keep the States of the USA
separate, and convert each