Re: [R] converting a data.frame into a different table

2014-05-30 Thread arun
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"

Re: [R] converting a data.frame into a different table

2014-05-30 Thread David Winsemius
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

Re: [R] converting a data.frame into a different table

2014-05-30 Thread Jeff Newmiller
library(reshape2) # you probably need to install reshape2 before this works ?melt --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...