Last answered:

12 Jan 2022

Posted on:

07 Jan 2022

0

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



library(tidyverse)

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)
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
image

2 answers ( 1 marked as helpful)
Instructor
Posted on:

10 Jan 2022

0

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:

read.csv("C:\...\billboard.csv")

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:

read.csv("billboard.csv")

Hope this helps!

Best,
365 Eli

Posted on:

12 Jan 2022

0

Many Thanks.

It worked

Submit an answer