[R] Transposing Data Frame does not return numeric entries

From: stephen sefick <ssefick_at_gmail.com>
Date: Tue, 15 Apr 2008 18:57:56 -0400


I have a species as rows and sites as columns matrix. I would like to tranpose this matrix so that I can do an NMDS analysis with the vegan package. I have used

y <- t(x)

and it indeed transposes the matrix, but it changes the whole make up

chr [1:193, 1:288] "oligocha" "0" " 0" " 0" " 0" "0" ...

the original matrix is numeric when I use str(x). I would post the data but it is large for a mailing list. I have read help and I can't figure it out.
-- 
Let's not spend our time and resources thinking about things that are so
little or so large that all they really do for us is puff us up and make us
feel like gods. We are mammals, and have not exhausted the annoying little
problems of being mammals.

-K. Mullis

	[[alternative HTML version deleted]]

______________________________________________
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.
Received on Wed 16 Apr 2008 - 02:34:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Apr 2008 - 03:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive