[Biomod-commits] Biomod.RangeSize
Wilfried Thuiller
wilfried.thuiller at ujf-grenoble.fr
Mon Feb 27 17:57:46 CET 2012
Hi there,
I think it has to do with the species name and data frame format.
Make sure MyAverageBinA2A and Present are all data.frame, and make sure the column 1 has the same label
MyAverageBinA2A = as.data.frame(MyAverageBinA2A)
Present = as.data.frame(Present)
colnames(MyAverageBinA2A) = "Cflorida"
colnames(Present) = "Cflorida"
HIH
Wilfried
Le 27 févr. 2012 à 14:22, Ashley Brooks a écrit :
> Hey!
>
> So I would like to do a Biomod.RangeSize comparing an average of two GCM's to the current climate data.
>
> Here is what I've done so far:
>
> > load("proj.cccm80a2a/Total_consensus_cccm80a2a")
> > load("proj.had80a2a/Total_consensus_had80a2a")
> > MyAverageA2A = rowMeans(cbind(Total_consensus_cccm80a2a[,1,"prob.mean.weighted"], Total_consensus_had80a2a[,1,"prob.mean.weighted"]))
> > MyThresA2A = mean(consensus_cccm80a2a_results$Cflorida$thresholds["prob.mean.weighted", c(2:4, 6:8)])
> > MyAverageBinA2A=BinaryTransformation(MyAverageA2A, MyThresA2A)
>
> For the current climate data all that I could think to do was put it in a similar 'format' as MyAverageBinA2A.
>
> Here is what I tried:
>
> > load("proj.present/Total_consensus_present_Bin")
> > Present<-Total_consensus_present_Bin[,1,"prob.mean.weighted"]
> > Biomod.RangeSize(CurrentPred=Present, FutureProj=MyAverageBinA2A, SpChange="Cflorida.2080a2a")
> Error in `dimnames<-.data.frame`(`*tmp*`, value = list(NULL, c("Loss", :
> invalid 'dimnames' given for data frame
>
>
> I've tried to use this function a couple of different ways (each incorporating MyAverageBinA2A) and keep getting the same error message. Please let me know if you have any suggestions or let me know if I took a wrong step somewhere.
>
> Thank you so much for all your help! It is greatly appreciated!
> Ashley
> _______________________________________________
> 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
ERC Starting Grant TEEMBIO project: http://www.will.chez-alice.fr/Research.html
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/20120227/4ceec91a/attachment.html>
More information about the Biomod-commits
mailing list