Skip to content

adehabitat

3 messages · Duncan Golicher, Clément Calenge, Roger Bivand

#
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
Dr Duncan Golicher
Ecologia y Sistematica Terrestre
Conservaci?n de la Biodiversidad
El Colegio de la Frontera Sur
San Cristobal de Las Casas, 
Chiapas, Mexico

Email: dgoliche at sclc.ecosur.mx 

Tel: 967 674 9000 ext 1310
Fax: 967 678 2322

United Kingdom Skypein; 020 7870 6251
Skype name: duncangolicher
#
Dear Duncan,
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
#
On Wed, 25 Oct 2006, Cl?ment Calenge wrote:

            
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