Dear friends,
  I have a polygon, which is the shapefile format. I want to use it as the
window of points in ppp(x,y,window) of spatstat package, how should i do?
The following programs can't work,:
a<-readShapePoly("d:/deleting/a/a.shp")  # read the boundary data
a2<-Polygon(coordinates(a), hole=as.logical(NA))
ppp(x,y,a2)
 THANKS.
-- 
With Kind Regards,

oooO:::::::::
(..):::::::::
:\.(:::Oooo::
::\_)::(..)::
:::::::)./:::
::::::(_/::::
:::::::::::::
[***********************************************************************]
Zhi Jie,Zhang ,PHD
Tel:86-21-54237149
Dept. of Epidemiology,School of Public Health,Fudan University
Address:No. 138 Yi Xue Yuan Road,Shanghai,China
Postcode:200032
Email:epistat@gmail.com
Website: www.statABC.com
[***********************************************************************]
oooO:::::::::
(..):::::::::
:\.(:::Oooo::
::\_)::(..)::
:::::::)./:::
::::::(_/::::
:::::::::::::

	[[alternative HTML version deleted]]


