Hello, i am learning R for first time. In the lesson, it asked me to import data onto R. Below is the instruction. Will someone help me write the code?
Thank you,
In the chunk below, you will use the read_csv() function to import data from a .csv in the project folder called "hotel_bookings.csv" and save it as a data frame called hotel_bookings:
If this line causes an error, copy in the line setwd("projects/Course 7/Week 4") before it.
I had the instruction above. will you please look at the instruction and write what the instruction is telling me so i can do it that way to see if it will return the data? Thank you,
Hi. I did what you showed me and still got error message.
setwd("~/")
hotel_bookings <- read.csv("hotel_bookings.csv")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'hotel_bookings.csv': No such file or directory