setwd("projects/Course 7/Week 3") Error in setwd("projects/Course 7/Week 3")

In the Hands-On Activity: Cleaning data in R, you may still have the error message when you follow the instruction to copy the line setwd("project/Course 7/Week 3") before it.

bookings_df <- read_csv("Course 7/Week 3/hotel_bookings.csv")

  1. Create an RStudio project named "Course7" (avoid embedded blanks in file names).
  2. Open the project.
  3. In the terminal mkdir Week3
  4. install.packages("here")
  5. In your active document
bookings_df <- read_csv(here("Week3/hotel_bookings.csv"))

here always starts from the current project root directory.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.