<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Dear list users and maptools mainteners,<br>
    <br>
    I'm a bit confused by the behaviour of the function
    as.SpatialPolygons.owin() <br>
    <br>
    library(spatstat)<br>
    library(maptools)<br>
    <br>
    disc.test<-disc(radius=1, centre=c(0,0))<br>
    disc.sp<-as.SpatialPolygons.owin(disc.test) # <-- fails and
    return <font color="#ff0000">a error: could not find function
      "as.SpatialPolygons.owin"</font><br>
    disc.sp<-as(disc.test, "SpatialPolygons") # <-- works fine<br>
    <br>
    On the other hand,  as.SpatialPoints.ppp(object.ppp) and
    as(object.ppp, "SpatialPoints") work fine. I haven't tested all the
    possibilities between spatstat and sp object, so I don't know if
    this "bug", if it is really one (everything seems to work fine on my
    PC), is widespread. <br>
    If not, I guess it was solely my Murphy's rule practise for today...<br>
    <br>
    <br>
    Alex<br>
    <br>
    P.S.: sessionInfo()<br>
    sion 2.12.1 (2010-12-16)<br>
    Platform: x86_64-pc-mingw32/x64 (64-bit)<br>
    <br>
    locale:<br>
    [1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United
    Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
    LC_NUMERIC=C                            LC_TIME=English_United
    Kingdom.1252    <br>
    <br>
    attached base packages:<br>
     [1] grid      grDevices datasets  splines   graphics  stats    
    tcltk     utils     methods   base     <br>
    <br>
    other attached packages:<br>
     [1] gpclib_1.5-1         maptools_0.7-38      foreign_0.8-41      
    spatstat_1.21-4      deldir_0.0-13        mgcv_1.7-2          
    rgdal_0.6-33         sp_0.9-76            effects_2.0-10      <br>
    [10] colorspace_1.0-1     nnet_7.3-1           MASS_7.3-9          
    ncf_1.1-3            gplots_2.8.0         caTools_1.11        
    bitops_1.0-4.1       gdata_2.8.1          gtools_2.6.2        <br>
    [19] scatterplot3d_0.3-31 lattice_0.19-13      svSocket_0.9-51     
    TinnR_1.0.3          R2HTML_2.2           Hmisc_3.8-3         
    survival_2.36-2     <br>
    <br>
    loaded via a namespace (and not attached):<br>
    [1] cluster_1.13.2     Matrix_0.999375-46 nlme_3.1-97       
    svMisc_0.9-61      tools_2.12.1     <br>
    <br>
    <div class="moz-signature">-- <br>
      <address>Alexandre Villers, PhD. <br>
        Postdoc researcher<br>
        Spatial
        Ecology & Population Dynamics<br>
        Section of Ecology, Department
        of Biology<br>
        University of Turku<br>
        FIN-20014 Turku<br>
        Finland<br>
        <br>
        @mail:
        alexandre.villers@utu.fi<br>
        phone: 00358 (0)2 333 5039<br>
        <a
          href="http://vanha.sci.utu.fi/biologia/ekologia/villers_eng.htm">web
          page</a></address>
      <address><br>
        Skype <a href="skype:aquila06?call"><img
            src="cid:part1.09050100.05010603@gmail.com" align="BOTTOM"
            border="0" width="53" height="53"></a></address>
      <br>
      <b>Use open source and free softwares</b><br>
      <a href="http://cran.r-project.org/"><img
          src="cid:part2.05090404.03000203@gmail.com" align="BOTTOM"
          border="0" width="66" height="50"></a>
      <a href="http://grass.itc.it/"><img
          src="cid:part3.09080903.05050703@gmail.com" align="BOTTOM"
          border="0" width="44" height="50"></a>
      <a href="http://www.qgis.org/"><img
          src="cid:part4.07040106.07080200@gmail.com" align="BOTTOM"
          border="0" width="50" height="50"></a>
      <a href="http://fr.openoffice.org/"><img
          src="cid:part5.05060409.05050408@gmail.com" align="BOTTOM"
          border="0" width="71" height="50"></a>
      <a href="http://www.mozilla-europe.org/fr/"><img
          src="cid:part6.01090404.07030809@gmail.com" align="BOTTOM"
          border="0" width="50" height="50"></a>
      <a href="http://www.mozilla-europe.org/fr/"><img
          src="cid:part7.07090009.04020009@gmail.com" align="BOTTOM"
          border="0" width="52" height="50"></a>
    </div>
  </body>
</html>