我想使用readxl包从excel工作表中读取一些不连续的单元格。读入的数据应存储为向量。
我正在读取的单元格为日期格式,我想保留该格式。
我尝试了以下方法:
startDate <- c(read_excel("G:/ai/My Courses/Course Distributions.xlsm", sheet = "Academic Calendar", col_names = F, range = "c7"),
read_excel("G:/ai/My Courses/Course Distributions.xlsm", sheet = "Academic Calendar", col_names = F, range = "d7"),
read_excel("G:/ai/My Courses/Course Distributions.xlsm", sheet = "Academic Calendar", col_names = F, range = "e7"),
read_excel("G:/ai/My Courses/Course Distributions.xlsm", sheet = "Academic Calendar", col_names = F, range = "f7"))
我的结果是
> startDate
$`X__1`
[1] "2018-01-15 UTC"
$X__1
[1] "2018-08-30 UTC"
$X__1
[1] "2018-10-15 UTC"
$X__1
[1] "2018-11-15 UTC"
如何将结果作为向量?