6

I am having the strangest of issues. 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 get:

Error in !header: invalid argument type

I tried rebooting R, it didn't help.

Ben Bolker
  • 211,554
  • 25
  • 370
  • 453
Pinemangoes
  • 1,158
  • 3
  • 11
  • 13

1 Answers1

14

Check class(T). Most likely T was overwritten with a non-boolean value. Restart of R probably loads the saved session.

Oleg Sklyar
  • 9,834
  • 6
  • 39
  • 62