Error in read.table :! Header: invalid argument type

I have the strangest problems. The following code no longer works:

Test<-matrix(rnorm(9),ncol=3)
 colnames(Test)<-c("a","b","c")
 write.table(Test,file="Test.txt")
 d<-read.table("Test.txt",header=T)

I got:

Error in the title! Invalid Argument Type

I tried restarting R, this did not help.

+3
source share
1 answer

Check it out class(T). Most likely, Tit was overwritten with a non-zero value. Restarting R may load the saved session.

+11
source

All Articles