<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi there,</div><div><br></div><div>I think it has to do with the species name and data frame format.</div><div><br></div><div>Make sure MyAverageBinA2A and Present are all data.frame, and make sure the column 1 has the same label</div><div><br></div><div>MyAverageBinA2A = as.data.frame(MyAverageBinA2A)</div><div>Present = as.data.frame(Present)</div><div><br></div><div>colnames(MyAverageBinA2A) = "Cflorida"</div><div>colnames(Present) =  "Cflorida"</div><div><br></div><div><br></div><div>HIH</div><div>Wilfried</div><div><br></div><br><div><div>Le 27 févr. 2012 à 14:22, Ashley Brooks a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Hey!<div><br></div><div>So I would like to do a Biomod.RangeSize comparing an average of two GCM's to the current climate data.</div><div><br></div><div>Here is what I've done so far:</div><div><br></div><div><div>

> load("proj.cccm80a2a/Total_consensus_cccm80a2a")</div><div>> load("proj.had80a2a/Total_consensus_had80a2a")</div><div>> MyAverageA2A = rowMeans(cbind(Total_consensus_cccm80a2a[,1,"prob.mean.weighted"], Total_consensus_had80a2a[,1,"prob.mean.weighted"]))</div>

<div>> MyThresA2A = mean(consensus_cccm80a2a_results$Cflorida$thresholds["prob.mean.weighted", c(2:4, 6:8)])</div></div><div>>  MyAverageBinA2A=BinaryTransformation(MyAverageA2A, MyThresA2A)</div><div><br>

</div><div>For the current climate data all that I could think to do was put it in a similar 'format' as MyAverageBinA2A.</div><div><br></div><div>Here is what I tried:</div><div><br></div><div><div>> load("proj.present/Total_consensus_present_Bin")</div>
<div>> Present<-Total_consensus_present_Bin[,1,"prob.mean.weighted"]</div><div>> Biomod.RangeSize(CurrentPred=Present, FutureProj=MyAverageBinA2A, SpChange="Cflorida.2080a2a")</div></div><div>
Error in `dimnames<-.data.frame`(`*tmp*`, value = list(NULL, c("Loss",  : </div><div><div>  invalid 'dimnames' given for data frame</div></div><div><br></div><div><br></div><div>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.</div>
<div><br></div><div>Thank you so much for all your help!  It is greatly appreciated!</div><div>Ashley</div>
_______________________________________________<br>Biomod-commits mailing list<br><a href="mailto:Biomod-commits@lists.r-forge.r-project.org">Biomod-commits@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/biomod-commits</blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div>--------------------------</div><div>Dr. Wilfried Thuiller</div><div>Laboratoire d'Ecologie Alpine, UMR CNRS 5553</div><div>Université Joseph Fourier</div><div>BP53, 38041 Grenoble cedex 9, France</div><div>tel: +33 (0)4 76 51 44 97</div><div>fax: +33 (0)4 76 51 42 79</div><div><br></div><div>Email: <a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a><br>Personal website: <a href="http://www.will.chez-alice.fr/">http://www.will.chez-alice.fr</a><br>Team website: <a href="http://www-leca.ujf-grenoble.fr/equipes/emabio.htm">http://www-leca.ujf-grenoble.fr/equipes/emabio.htm</a><br><br>ERC Starting Grant TEEMBIO project: <a href="http://www.will.chez-alice.fr/Research.html">http://www.will.chez-alice.fr/Research.html</a><br>FP6 European EcoChange project: <a href="http://www.ecochange-project.eu/">http://www.ecochange-project.eu</a></div><div><br></div></span></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>