Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 RODBC 仅读取 excel 文件的一列?怎么能这样做?
谢谢
name从工作表中获取列sheetname
name
sheetname
library(RODBC) sheet = 'my_excel.xls' con = odbcConnectExcel(sheet) #tbls = sqlTables(con) dfr <- sqlQuery(con,"SELECT name FROM `sheetname$`") close(con)