[R] Read File for Matrix with rownames

MSousa ricardosousa2000 at clix.pt
Fri Mar 23 10:38:15 CET 2012

Good morning,

Good morning,

    I'm trying to read the file into an array, with the following code.

A<- as.matrix(read.csv("~/Desktop/Results/Cfile.csv", header = FALSE,

The content of the file
 "  ","1","2","3","4"
"1", 484,43,67,54

What I needed is that the first line was the name of the columns and the
first column was the name of the lines.


View this message in context: http://r.789695.n4.nabble.com/Read-File-for-Matrix-with-rownames-tp4498280p4498280.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list