Hi,
You may try:
##Assuming the dataset is a matrix
mat <- structure(c("FBgn0037249", "FBgn0036389", "FBgn0014002", "FBgn0034201",
"FBgn0029860", "FBgn0028526", "FBgn0003486", "FBpp0312226", "FBpp0312225",
"FBpp0312224", "FBpp0312223", "FBpp031", "FBpp0312221", "FBpp0312220",
"FBtr0346646"
On May 30, 2014, at 3:07 PM, Assa Yeroslaviz wrote:
> Hi,
>
> I have a matrix of 4.5Kx4.5K elements with column- and row names
>
> I need to convert this matrix into a table, where one column is the name of
> the row for the element, the second column is the name of the column for
> the same el
library(reshape2) # you probably need to install reshape2 before this works
?melt
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Hi,
I have a matrix of 4.5Kx4.5K elements with column- and row names
I need to convert this matrix into a table, where one column is the name of
the row for the element, the second column is the name of the column for
the same element and the third column is the element itself.
The way I do it a
4 matches
Mail list logo