如何打开R中似乎有问题的xls文件

问题描述 投票:0回答:1

我有一个 xls 文件,无法在 R 中打开。我尝试了很多,得到的结果是这样的:

data = read.table('D:/Usuario/pivo1/table.xls', sep = ';')

但是 df 的形式是这样的:

enter image description here

虽然它应该是这样的:

enter image description here

另外:

打印(数据[9,1])

enter image description here

我们可以看到感兴趣的数字。日期、时间等,但这种形式,位于 df 的第 9 行第 1 列。

r xls
1个回答
0
投票

要在

R
中读取 Excel 文件(实际上是 Excel 文件中的工作表或工作表的一部分),您有多种选择。例如:

© www.soinside.com 2019 - 2024. All rights reserved.