Skip to content
Prev 27446 / 29559 Next

adehabitat: Working with enfa() function using *asc files

Dear R-Sig-Geo Members,

 ?????? Many years ago I used enfa() function of adehabitat package with my 
*asc files with environmental variables and my script works very well, 
but now adehabitat is deprecated and there are many versions of 
adehabitat. I install the adehabitatHS but for doesn't work with my *asc 
files.

 ?????? My objective was create a data2enfa object and for this I used 
manually all the functions in an old adehabitat package (kasc2df, 
import.asc, as.kasc and data2enfa) but doesn't work too. In my script I 
make:

#Create enfa analysis object
pinkdata <- data2enfa(as.kasc(list(tmax=import.asc("tmax.asc") , 
tmin=import.asc("tmin.asc"))), pink.sub.pnt at coords)
#

 ??Error in count.points(pts, kasc) :
 ?? w should inherit the class SpatialPixels

 ?????? I need to create a data2enfa object using *asc files as tab and 
organism position pink.sub.pnt at coords as pr in enfa1 <- 
enfa(dudi.pca(tab), pr,?? scannf = FALSE).

 ?????? Please, any member that work with *asc files and ENFA help me?

Thanks in advanced,

Alexandre