Re: [MORPHMET] geiger rescale error
Hi Andrea, The code you provided works for me and I am using R 3.2.2, geiger 2.0.6 and ape_4.0. However, ensure that the gegier is loaded in the R environment or ensure that other packages with the same function name do not possibly interfere with geiger (see this post: http://stackoverflow.com/questions/5564564/r-2-functions-with-the-same-name-in-2-different-packages). What might happen here is that when you called rescale function, R used rescale function from some other (loaded) packages (from different namespaces...). Try to run the new R session and load just geiger (with dependencies) using library (geiger) command, check the rescale function by getAnywhere("rescale") command and if rescale is called from the geiger () you will likely get an expected output (without error). There is a shorter way as well. Load geiger and just type geiger::rescale(). Marko On 2016-12-06 10:19, andrea cardini wrote: Dear All, I've just tried the rescale function in geiger on my data and got an error message. As I have no experience with it, I tried the first example for this function in the help: same error message (see below). Has anyone had similar issues? Probably I made some silly mistake. Thanks in advance for your feedback. Cheers Andrea geo <- get(data(geospiza)) ltrns <- rescale(geo$phy, "lambda") plot(ltrns(0)) title("lambda: 0.0") Error message: Error in rescale(as.numeric(x, range = range, domain = domain, ...)) : (list) object cannot be coerced to type 'double' -- Dr. Andrea Cardini Researcher, Dipartimento di Scienze Chimiche e Geologiche, Università di Modena e Reggio Emilia, Via Campi, 103 - 41125 Modena - Italy tel. 0039 059 2058472 Adjunct Associate Professor, School of Anatomy, Physiology and Human Biology, The University of Western Australia, 35 Stirling Highway, Crawley WA 6009, Australia E-mail address: alcard...@gmail.com, andrea.card...@unimore.it WEBPAGE: https://sites.google.com/site/alcardini/home/main FREE Yellow BOOK on Geometric Morphometrics: http://www.italian-journal-of-mammalogy.it/public/journals/3/issue_241_complete_100.pdf ESTIMATE YOUR GLOBAL FOOTPRINT: http://www.footprintnetwork.org/en/index.php/GFN/page/calculators/ -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org --- You received this message because you are subscribed to the Google Groups "MORPHMET" group. To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org.
Re: [MORPHMET] geiger rescale error
Hi Andrea, I have run the code you posted without problems. In this moment, I'm using R 3.3.2 x64 on a Windows machine. The geiger version I tried this on is geiger_2.0.6. You might wanna try also posting the question on the list R-sig-phylo as a lot of people developing R packages for phylogenetic comparative approaches are subscribers there (and that's why I'm answering to you publicly). Best, Carmelo andrea cardini ha scritto: Dear All, I've just tried the rescale function in geiger on my data and got an error message. As I have no experience with it, I tried the first example for this function in the help: same error message (see below). Has anyone had similar issues? Probably I made some silly mistake. Thanks in advance for your feedback. Cheers Andrea geo <- get(data(geospiza)) ltrns <- rescale(geo$phy, "lambda") plot(ltrns(0)) title("lambda: 0.0") Error message: Error in rescale(as.numeric(x, range = range, domain = domain, ...)) : (list) object cannot be coerced to type 'double' -- Dr. Andrea Cardini Researcher, Dipartimento di Scienze Chimiche e Geologiche, Università di Modena e Reggio Emilia, Via Campi, 103 - 41125 Modena - Italy tel. 0039 059 2058472 Adjunct Associate Professor, School of Anatomy, Physiology and Human Biology, The University of Western Australia, 35 Stirling Highway, Crawley WA 6009, Australia E-mail address: alcard...@gmail.com, andrea.card...@unimore.it WEBPAGE: https://sites.google.com/site/alcardini/home/main FREE Yellow BOOK on Geometric Morphometrics: http://www.italian-journal-of-mammalogy.it/public/journals/3/issue_241_complete_100.pdf ESTIMATE YOUR GLOBAL FOOTPRINT: http://www.footprintnetwork.org/en/index.php/GFN/page/calculators/ -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org --- You received this message because you are subscribed to the Google Groups "MORPHMET" group. To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org. -- Carmelo Fruciano Postdoctoral Fellow - Queensland University of Technology - Brisbane, Australia Honorary Fellow - University of Catania - Catania, Italy e-mail c.fruci...@unict.it http://www.fruciano.it/research/ -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org --- You received this message because you are subscribed to the Google Groups "MORPHMET" group. To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org.
[MORPHMET] geiger rescale error
Dear All, I've just tried the rescale function in geiger on my data and got an error message. As I have no experience with it, I tried the first example for this function in the help: same error message (see below). Has anyone had similar issues? Probably I made some silly mistake. Thanks in advance for your feedback. Cheers Andrea geo <- get(data(geospiza)) ltrns <- rescale(geo$phy, "lambda") plot(ltrns(0)) title("lambda: 0.0") Error message: Error in rescale(as.numeric(x, range = range, domain = domain, ...)) : (list) object cannot be coerced to type 'double' -- Dr. Andrea Cardini Researcher, Dipartimento di Scienze Chimiche e Geologiche, Università di Modena e Reggio Emilia, Via Campi, 103 - 41125 Modena - Italy tel. 0039 059 2058472 Adjunct Associate Professor, School of Anatomy, Physiology and Human Biology, The University of Western Australia, 35 Stirling Highway, Crawley WA 6009, Australia E-mail address: alcard...@gmail.com, andrea.card...@unimore.it WEBPAGE: https://sites.google.com/site/alcardini/home/main FREE Yellow BOOK on Geometric Morphometrics: http://www.italian-journal-of-mammalogy.it/public/journals/3/issue_241_complete_100.pdf ESTIMATE YOUR GLOBAL FOOTPRINT: http://www.footprintnetwork.org/en/index.php/GFN/page/calculators/ -- MORPHMET may be accessed via its webpage at http://www.morphometrics.org --- You received this message because you are subscribed to the Google Groups "MORPHMET" group. To unsubscribe from this group and stop receiving emails from it, send an email to morphmet+unsubscr...@morphometrics.org.