Hi Keun-Hyung, Can you send the data (off list) to me or at least show what
str(gh1) produces, and show us the output from require(vegan) sessionInfo() Without that it is difficult to help. G On Tue, 2008-11-11 at 17:19 +0900, [EMAIL PROTECTED] wrote: > Dear all, > > I'm using R2.8 version, and am trying to do NMDS and calculate other > diversity indices in vegan package. > The problem is that it works with a small set of data (43 X 23; row by > column), but the following error message comes up with a larger data set (43 > X 104) (it seems not large to me at all). I made it sure that all data are > of numeric type as required. > > >gh1.H=diversity(gh1) > >FUN(newX[, i], ...) : invalid 'type' (character) of argument > > If someone has an idea, please... > > Keun-Hyung > ______________________________________________ > R-help@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 %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% ______________________________________________ R-help@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.