使用RStudio加载制表符分隔的文件时出现问题

问题描述

我正在尝试从.txt(制表符分隔的文件)中上传数据集,但RStudio不能识别其中的内容

我想知道这是关于特殊编码还是类似的东西。

我要上传内容

enter image description here

RSTUdio显示内容

enter image description here

library(readr)
X01172_BD03B_201902 <- read_delim("smp-22-09/01172_BD03B_201902.txt","\t",escape_double = FALSE,trim_ws = TRUE)
View(X01172_BD03B_201902)

我们正在使用阅读器库。

带有控制台错误说明的屏幕截图:

enter image description here

解决方法

使用read.csv()

X01172_BD03B_201902 <- read.csv("smp-22-09/01172_BD03B_201902.txt",sep = "\t")