Displaying 1 result from an estimated 1 matches for "98x101".
Did you mean:
98101
2002 Mar 12
4
swapping rows with columns
Hello,
I've read in a data file as a frame and now I'd like the columns to be
rows and the rows to be columns. What's the easiest way to do this in R?
> class(d)
[1] "data.frame"
> rownames(d)
[1] "98x101" "40x98" "30x40" "0x30"
> colnames(d)
[1] "H..sapiens" "C..elegans" "D..melanogaster"
"S..cerevisiae"
[5] "E..coli" "M..tuberculosis" "B..subtilis"
"V..cho...