R语言读入表格报错

师姐发我新的转录组数据让我处理,是一个103M的txt文件,我的小电脑跑得慢,就尝试直接用R读进来试一下。

exp <- data.frame(read.table("./2023年转录组/Expression_with_annotation-XHW78.txt"))

但是出现了如下的报错:

Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec,  : 
  invalid multibyte string at '<ff><fe><47>'
In addition: Warning messages:
1: In read.table("./2023年转录组/Expression_with_annotation.txt") :
  line 1 appears to contain embedded nulls
2: In read.table("./2023年转录组/Expression_with_annotation.txt") :
  line 2 appears to contain embedded nulls
3: In read.table("./2023年转录组/Expression_with_annotation.txt") :
  line 3 appears to contain embedded nulls
4: In read.table("./2023年转录组/Expression_with_annotation.txt") :
  line 4 appears to contain embedded nulls
5: In read.table("./2023年转录组/Expression_with_annotation.txt") :
  line 5 appears to contain embedded nulls
6: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
  embedded nul(s) found in input

我一开始没注意看报错,以为是因为有空值的原因,所以按照经验把sep、fill和header都填进去了试一下,发现还是报错。特别是这条报错非常可疑:

Error in make.names(col.names, unique = TRUE) : 
  invalid multibyte string at '<ff><fe><47>'