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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.