The error message suggests that the "read_excel" function cannot determine whether the input file "C:\Users\27773\Desktop\BostonHousing3.csv" is in xls or xlsx format.

The "read_excel" function is typically used to read Excel files (.xls or .xlsx). Therefore, if you are trying to read a CSV file, you should use a different function such as "read_csv" from the "readr" package or "read.table" from the base R package.

Here's an example of how you can read a CSV file using the "read_csv" function from the "readr" package:

library(readr)
data <- read_csv("C:\\Users\\27773\\Desktop\\BostonHousing3.csv")

Make sure you have installed the "readr" package before running the above code. You can install it by running install.packages("readr") in the R console

data - read_excelCUsers27773DesktopBostonHousing3csvError Cant establish that the input is either xls or xlsx中文

原文地址: http://www.cveoy.top/t/topic/hYVl 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录