"Files Not Found" Error When Attempting to Load Excel Files in R

Asked 2 years ago, Updated 2 years ago, 37 views

After installing openxlsx, I ran read.xlsx(book1.xlsx) because it was on the site, but it said "File not found".
Book1 exists, but I don't know the cause.I would appreciate it if you could let me know.

r

2022-09-30 19:37

1 Answers

I can think of two things.
①"
without "" in the file name" read.xlsx("book1.xlsx") instead of read.xlsx(book1.xlsx).
"If you look at the error, you may have actually put ""…

""

保存 The saved data is not in the working directory.
First, type getwd() in R to find the location of the folder location.
R is based on the location of the folder.

If you are not familiar with R yet, try putting the data in that folder.
If you know the meaning of "relative path" or "absolute path", you can do it in another folder.


2022-09-30 19:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.