Re: [R] error in casting matrix

2008-06-17 Thread Erik Iverson
Paul Adams wrote: Hello everyone, I am trying to cast a data frame to a matrix I have used the following code: dat<-read.table(file="C:\\Documents and Settings\.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settingt.txt") Z.matrix<-as.matrix(dat.data.frame) but I keep g

[R] error in casting matrix

2008-06-17 Thread Paul Adams
Hello everyone, I am trying to cast a data frame to a matrix I have used the following code: dat<-read.table(file="C:\\Documents and Settings\.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settingt.txt") Z.matrix<-as.matrix(dat.data.frame) but I keep getting the error error