Re: [R] Read File for Matrix with rownames

2012-03-23 Thread Djordje Bajic
first problem: the "blank" space in first position in the first line. Try removing it, so that the file looks like this: "1","2","3","4" "1",484,43,67,54 "2",54,35,67,34 "3",69,76,78,55 "4",67,86,44,34 Second: your colnames and rownames are numeric; R recognizes it but puts an X (but it recognize

[R] Read File for Matrix with rownames

2012-03-23 Thread MSousa
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 Wh