Dear Roger,
  It works very well now.
  Great.

On Dec 14, 2007 5:28 AM, Roger Bivand <Roger.Bivand@nhh.no> wrote:

> Dear Zhijie,
>
> I've submitted 0.7-3 to CRAN - sorry for the slip up.Please let me know if
> this is now what you need, I did test it on the example, and it looked
> sensible.
>
> Best wishes,
>
> Roger
>
> On Fri, 14 Dec 2007, zhijie zhang wrote:
>
> > Dear Roger,
> >  It'll be better to keep the original coordinates in the transformed
> > dataset when it's fixed, which is useful in some conditions, e.g.
> disease
> > clustering analysis. For the purpose of publication, we'll need to
> transfrom
> > the original coordinates , but for the decision-making, the original
> > coordinates will be clearer. So we'll resort  the original coordinates
> for
> > decision-making if we detected the possible clusters.
> >
> > On Dec 13, 2007 2:47 PM, Roger Bivand <Roger.Bivand@nhh.no> wrote:
> >
> >> On Thu, 13 Dec 2007, zhijie zhang wrote:
> >>
> >>> Dear Roger,
> >>>  There maybe a new bug in the new elide() funcftion for maptools'
> >> version
> >>> 0.7-2, which was correct in the former version. See below.
> >>
> >> Again correct - please simply replace the elide()ed object data slot
> with
> >> the original.
> >>
> >> Roger
> >>
> >>> #Example in the help page
> >>> data(meuse)
> >>> coordinates(meuse) <- c("x", "y")
> >>> proj4string(meuse) <- CRS("+init=epsg:28992")
> >>> data(meuse.riv)
> >>> river_polygon <- Polygons(list(Polygon(meuse.riv)), ID="meuse")
> >>> rivers <- SpatialPolygons(list(river_polygon))
> >>> proj4string(rivers) <- CRS("+init=epsg:28992")
> >>>
> >>> ##maptools' version 0.7-2, the transformed dataset dropped two
> variables
> >> in
> >>> the rightmost: landuse and dist.m.
> >>> meuse1 <- elide(meuse, bb=bbox(rivers), scale=TRUE)
> >>>> meuse[1,]
> >>>       coordinates cadmium copper lead zinc  elev       dist   om ffreq
> >> soil
> >>> lime landuse dist.m
> >>> 1 (181072, 333611)    11.7     85  299 1022 7.909 0.00135803 13.6
> 1
> >>> 1    1      Ah     50
> >>>> meuse1[1,]
> >>>          coordinates      x      y cadmium copper lead zinc  elev
> >>> dist   om ffreq soil lime
> >>> 1 (0.23093, 0.660129) 181072 333611    11.7     85  299 1022 7.909
> >>> 0.00135803 13.6     1    1    1
> >>>
> >>> ##maptools' version 0.6-19 + original elide() function: i can't found
> >> the
> >>> former version for maptools package with elide() function, but i use
> the
> >>> elide() function that you sent me for the 1st time to show its
> results.
> >> You
> >>> can try the former version.
> >>> meuse1 <- elide(meuse, bb=bbox(rivers), scale=TRUE)
> >>>> meuse[1,]
> >>>       coordinates cadmium copper lead zinc  elev       dist   om ffreq
> >> soil
> >>> lime landuse dist.m
> >>> 1 (181072, 333611)    11.7     85  299 1022 7.909 0.00135803 13.6
> 1
> >>> 1    1      Ah     50
> >>>> meuse1[1,]  #it didn't drop any variables
> >>>          coordinates cadmium copper lead zinc  elev       dist   om
> >> ffreq
> >>> soil lime landuse dist.m
> >>> 1 (0.23093, 0.660129)    11.7     85  299 1022 7.909 0.00135803 13.6
> >>> 1    1    1      Ah     50
> >>>
> >>> The reason maybe the latest version remains the original x/y
> coordinates
> >>> that resulted in overlaying the rightmost two variables, while the
> >> former
> >>> version dropped the original x/y coordinates . So i think two
> additional
> >>> colunms maybe needed there.
> >>>  Thanks.
> >>>
> >>>
> >>>
> >>>
> >>
> >> --
> >> Roger Bivand
> >> Economic Geography Section, Department of Economics, Norwegian School
> of
> >> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> >> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> >> e-mail: Roger.Bivand@nhh.no
> >>
> >
> >
> >
> >
>
> --
> Roger Bivand
> Economic Geography Section, Department of Economics, Norwegian School of
> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand@nhh.no
>



-- 
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]]


