R中openxlsx讀取excel2003版xls報錯: openxlsx can not read .xls or .xlm files!

報錯信息:

 openxlsx can not read .xls or .xlm files!

報錯原因:
openxlsx不支持2003版excel格式的讀取。

解決方法:使用readxl包


library(readxl)
tt= read_xls("test.xls")
head(tt);dim(tt)

用法和openxlsx一致。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章