In read.table("c.txt", header = TRUE) : incomplete final line found by readTableHeader on 'c

用R读取txt文件的数据报错:

Warning message:
In read.table("c.txt", header = TRUE) :
  incomplete final line found by readTableHeader on 'c.txt'

解决:在该txt文件最后一行加上回车键就可以,因为该错误的原因是最后没有换行

猜你喜欢

转载自blog.csdn.net/zhou_438/article/details/84823207