[Biomod-commits] Migration()

Wilfried Thuiller wilfried.thuiller at ujf-grenoble.fr
Tue Aug 2 07:18:42 CEST 2011


Dear Frederico,

> Migration(CurrentPred = Total_consensus_current_Bin[,,1], FutureProj = Total_consensus_proj2020A1_Bin[,,1], X=coordxy[,1], Y=coordxy[,2], MaxMigr=2*0.6667,
> Pred.Save="Future1.Migration2020")  
>  
> 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”.

try

dim(Total_consensus_current_Bin)

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. 

Cheers,

Wilfried

>  
> What might be happening?
>  
> Thanks,
>  
> Frederico Mestre
>  
> _______________________________________________
> Biomod-commits mailing list
> Biomod-commits at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits

--------------------------
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/e2d03fef/attachment.htm>


More information about the Biomod-commits mailing list