Skip to content
Prev 174538 / 398503 Next

Converting Matrix into List - problem (urgent)

You really haven't given us enough information.  What stements did you
execute that produced the data and row/column labels shown above?  What does
running str(congeneric) tell you about congeneric?  I don't think you want
your data for the correlation in an R list structure.  You want your data in
vectors, or the columns of a matrix or dataframe.  Given the data in your
file, you could do something like this

#read data into a matrix
m <- as.matrix(read.table("your_data_file",sep=' ', header=FALSE))

#get the 20 values you want
vector1 <- as.vector(t(m))[1:20]

But without knowing the actual structure of your variable congeneric, it is
not possible to tell you how to manipulate it.  Maybe someone else will be
better at guessing.

Dan

Daniel Nordlund
Bothell, WA USA