Last answered:

12 Jan 2022

Posted on:

07 Jan 2022


Resolved: Manipulating data with R - Tidying your data - gather() and separate()

I am getting the error message when i input the read.csv code to locate the document on my system . Please it's giving me a hard time and i am finding it difficult to proceed with other lectures. Please what am i missing


billboard <- read.csv("C:\Users\Laurel\Desktop\Data Science _ 365\Introduction to R Programming\Section 7\6_Tidying your data - gather() and separate()\Course notes")
billboard <- as.tibble(billboard)

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'C:/Users/Laurel/Desktop/Data Science _ 365/Introduction to R Programming/Section 7/6_Tidying your data - gather() and separate()/Course notes': Permission denied

2 answers ( 1 marked as helpful)
Posted on:

10 Jan 2022


Hi Ashakah,
thanks for reaching out!
From what I understand you're trying to load the billboard data set. In this case you can do the following:
1. Add the path directory to your file, along with the name:


Alternatively, you can add the csv file into your R root directory, in which case you'll be able to access it directly only via file name like so:


Hope this helps!

365 Eli

Posted on:

12 Jan 2022


Many Thanks.

It worked

Submit an answer