[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,
sep=","))
The content of the file
" ","1","2","3","4"
"1", 484,43,67,54
"2",54,35,67,34
"3",69,76,78,55
"4",67,86,44,34
What I needed is that the first line was the name of the columns and the
first column was the name of the lines.
Thanks
--
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