<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear Nagore,</div><div>Rob Hijmans recently updated the raster package in a way that several functions (Projections.raster, EnsembleForecasting.raster) in BIOMOD did not work anymore.</div><div>I have fixed everything during the weekend and it should work now.</div><div><br></div><div>I think the package has been compiled on R-Forge so make sure you update the package and get version 1.1-6.1.</div><div><br></div><div>Wilfried</div><div><br></div><div><br></div><br><div><div>Le 7 déc. 2010 à 12:39, Nagore García a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br>This is my first run in BIOMOD, and I'm afraid I'm having troubles with Projection.raster. Here I attach de script I used, function Models() runs nicely, but then I have an error message when trying to run Projection.raster. Anybody has an idea why I get this error message?<br>
<br>ovit&nbsp; <br>Error en as.numeric(g) : <br>&nbsp; cannot coerce type 'S4' to vector of type 'double'<br><br><br>sdmdata&lt;-read.csv("sdmdata.csv")<br>head(sdmdata)<br>&nbsp; idw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y ibe_biof1 ibe_biof10 ibe_biof11 ibe_biof12 ibe_biof13<br>
1&nbsp;&nbsp; 1 -2.238898 37.92525&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 114&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 39&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 561&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 72<br>2&nbsp;&nbsp; 2 -1.704232 37.92057&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 113&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 199&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 503&nbsp; 1<br>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1244&nbsp; 1<br><br>Initial.State(Response = sdmdata[,24], Explanatory = sdmdata[,c(23,4,14,17)],IndependentResponse = NULL,<a href="http://sp.name/">sp.name</a>="ovit")<br><br>
Models(GLM = F, TypeGLM = "poly", Test = "AIC", GBM = F, No.trees = 2000, GAM = T, Spline = 3, CTA = F, CV.tree = 50, ANN = F, CV.ann = 2, SRE = F, quant=0.025, FDA = F,MARS = F, RF = F, NbRunEval = 4, DataSplit = 80, Yweights=NULL, Roc = T, Optimized.Threshold.Roc = T, Kappa = T, TSS=T, KeepPredIndependent = F, VarImport=F, NbRepPA=0)<br>
Biomod.Manual()<br><br>CurrentPred(GLM=T, GBM=T, GAM=T, CTA=T, ANN=T, SRE=T, MARS=F, RF=T,BinRoc=T, BinKappa=T, BinTSS=T, FiltKappa=T)<br><br>files &lt;- list.files("<a href="smb://encuadre">\\encuadre</a> iberico",pattern='asc', full.names=TRUE )<br>
pred.1 &lt;- stack(files[c(1,14,11,20)])<br><br>Projection.raster(RasterProj = pred.1, Proj.name='Pred.ovit1', GLM = T, GBM = T, GAM = T,CTA = T, ANN = T, SRE = T, MARS = T, RF = T,BinRoc = T, BinKappa = T, BinTSS = T, FiltRoc = T, FiltKappa = T, FiltTSS = T,repetition.model=T)<br clear="all">
<br>-- <br>Nagore García Medina. <a href="mailto:ngmedina@gmail.com">ngmedina@gmail.com</a><br>
_______________________________________________<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<br></blockquote></div><br><div>
<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-align: 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; "><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:&nbsp;<a href="mailto:wilfried.thuiller@ujf-grenoble.fr">wilfried.thuiller@ujf-grenoble.fr</a><br>Home page:&nbsp;<a href="http://www.will.chez-alice.fr/">http://www.will.chez-alice.fr</a><br>Website:&nbsp;<a href="http://www-leca.ujf-grenoble.fr/equipes/tde.htm">http://www-leca.ujf-grenoble.fr/equipes/tde.htm</a><br><br>FP6 European MACIS project:&nbsp;<a href="http://www.macis-project.net/">http://www.macis-project.net</a><br>FP6 European EcoChange project:&nbsp;<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"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>