Steve Pawson
2011-Oct-11 06:51 UTC
[R] Vegan: Anova.CCA accessing original data using option by="margin"
Hello, I am attempting to use the ANOVA.CCA function with the by="margin" option. The process works fine using the by="terms" option and I note in the Vegan manual that Jari suggests that an error may occur if the anova does not have access to the data on the original constraints. This is the error that I get: Error in dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent My question is, does anyone know if this error relates to what Jari is referring to (or is it a different problem), and if it is, how do I link the anova to the original constraints? Many thanks for any help provided. Regards Steve -- View this message in context: http://r.789695.n4.nabble.com/Vegan-Anova-CCA-accessing-original-data-using-option-by-margin-tp3893005p3893005.html Sent from the R help mailing list archive at Nabble.com.
Gavin Simpson
2011-Oct-11 12:30 UTC
[R] Vegan: Anova.CCA accessing original data using option by="margin"
On Mon, 2011-10-10 at 23:51 -0700, Steve Pawson wrote:> Hello, > > I am attempting to use the ANOVA.CCA function with the by="margin" option. > The process works fine using the by="terms" option and I note in the Vegan > manual that Jari suggests that an error may occur if the anova does not have > access to the data on the original constraints. > > This is the error that I get: > > Error in dimnames(x) <- dn : > length of 'dimnames' [2] not equal to array extent > > My question is, does anyone know if this error relates to what Jari is > referring to (or is it a different problem), and if it is, how do I link the > anova to the original constraints?It is almost impossible to answer that without a lot more information. For starters, what does traceback() say when run immediately *after* you get the error? G> Many thanks for any help provided. > > Regards > > Steve > > -- > View this message in context: http://r.789695.n4.nabble.com/Vegan-Anova-CCA-accessing-original-data-using-option-by-margin-tp3893005p3893005.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%