Read.csv() throws error

后端 未结 7 830
暗喜
暗喜 2021-01-18 03:49

I have been trying to read the excel file but seems like there is something wrong. The file is stored in Documents folder in excel format.

These are the error mess

7条回答
  •  时光取名叫无心
    2021-01-18 04:28

    If you're trying to read in an xlsx file, use the xlsx library, or export them as csv files. read.table or read.csv will not work for Excel files.

    install.packages("xlsx")
    library(xlsx)
    table <- read.xlsx("file.xlsx", 1)
    

提交回复
热议问题