data - read_excelCUsers27773DesktopBostonHousing3csvError Cant establish that the input is either xls or xlsx
The error message suggests that the file you are trying to read is not in a recognized Excel format (xls or xlsx).
To resolve this issue, you can try the following steps:
- Make sure the file path is correct and the file exists in the specified location.
- Check the file extension and ensure it is either xls or xlsx.
- If the file is in a different format (e.g., CSV), you can use the appropriate read function for that format. For example, you can use
read_csv()function from the "readr" package to read a CSV file. - If the file is indeed an Excel file but the read_excel function is not recognizing it, you may need to install and load the "readxl" package, which provides the read_excel function. You can do this by running
install.packages("readxl")and thenlibrary(readxl)before running the read_excel function.
If the issue persists, please provide more information about the file you are trying to read, such as its format and contents, so that I can assist you more accurately
原文地址: https://www.cveoy.top/t/topic/hYVh 著作权归作者所有。请勿转载和采集!