[R-sig-Geo] adehabitat
Roger Bivand
Roger.Bivand at nhh.no
Wed Oct 25 08:59:51 CEST 2006
On Wed, 25 Oct 2006, Clément Calenge wrote:
> Dear Duncan,
>
> > This was a useful comment as I was doing something similar at the same
> > time as Milton. I thought it worth mentioning that I found that when
> > using sp0.9-2 I needed to fix the function spixdf2kasc in order to get
> > sp data into the adehabitat kasc format.
> >
> > The line that reads ka <- as.data.frame(attr(sg at data, "att"))
> >
> > should be changed to
> >
> > ka <- sg at data
Please try:
ka <- as(sg, "data.frame")
Indeed, it ought to have been that before, then the 2.3.*/2.4.* change in
how S4 classes are represented would have been hidden. Using coercion and
access methods is much more robust than grabbing internal bits of objects
(which are subject to change).
Roger
> >
> Many thanks for this comment. This will be included in the next version
> which will be uploaded on CRAN before the end of the week.
> Best wishes,
>
> Clément CALENGE
>
--
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 at nhh.no
More information about the R-sig-Geo
mailing list