我从 excel 导入数据,我有多个 excel,所以我一次阅读。
这是我的代码:
library(readxl)
library(data.table)
file.list <- dir(path = "path/", pattern='\\.xlsx', full.names = T)
df.list <- lapply(file.list, read_excel)
data <- rbindlist(df.list)
df.list <- lapply(file.list, read_excel)
但是,我在和之间收到此警告消息data <- rbindlist(df.list)
。
Warning messages:
1: In read_xlsx_(path, sheet, col_names = col_names, col_types = col_types, :
[3083, 9]: expecting date: got '2015/07/19'
2: In read_xlsx_(path, sheet, col_names = col_names, col_types = col_types, :
[3084, 9]: expecting date: got '2015/07/20'
这是怎么回事?如何检查和纠正?