[Biomod-commits] RES: Migration()

Frederico Mestre mestre.frederico at gmail.com
Tue Aug 2 12:07:14 CEST 2011

Dear Wilfried,


I had already checked the number of dimensions and I had 3 dimensions in
each file, like this:


> dim(Total_consensus_current_Bin)

[1] 11926     1     6

> dim(Total_consensus_proj2020A1_Bin)

[1] 11926     1     6


Because I thought BIOMOD was giving this error due to the number of
dimensions being different.


Am I doing something wrong?






De: Wilfried Thuiller [mailto:wilfried.thuiller at ujf-grenoble.fr] 
Enviada em: terça-feira, 2 de Agosto de 2011 06:19
Para: Frederico Mestre
Cc: biomod-commits at r-forge.wu-wien.ac.at
Assunto: Re: [Biomod-commits] Migration()


Dear Frederico,


Migration(CurrentPred = Total_consensus_current_Bin[,,1], FutureProj =
Total_consensus_proj2020A1_Bin[,,1], X=coordxy[,1], Y=coordxy[,2],



First: do I have to use the consensus file _Bin or can I use the one with
the probabilities?


You have to use a binary vector, yes. I could have make it for probabilities
indeed, but this is not the case at the moment. I might get a look to see
how easy it would be to adapt it. 

Second: I’m getting this error “Error in CurrentPred[, 1] : incorrect number
of dimensions”.






I guess you have 4 dimensions in Total_consensus_current_Bin. You need to
specific the fourth dimension in the squared brackets. 


Total_consensus_current_Bin[,,1,1] something like that. 






What might be happening?




Frederico Mestre


Biomod-commits mailing list
Biomod-commits at lists.r-forge.r-project.org



Dr. Wilfried Thuiller

Laboratoire d'Ecologie Alpine, UMR CNRS 5553

Université Joseph Fourier

BP53, 38041 Grenoble cedex 9, France

tel: +33 (0)4 76 51 44 97

fax: +33 (0)4 76 51 42 79


Email: wilfried.thuiller at ujf-grenoble.fr
Personal website: http://www.will.chez-alice.fr
Team website: http://www-leca.ujf-grenoble.fr/equipes/emabio.htm

FP6 European MACIS project: http://www.macis-project.net
FP6 European EcoChange project: http://www.ecochange-project.eu





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/biomod-commits/attachments/20110802/58557f99/attachment.htm>

More information about the Biomod-commits mailing list