-1

I'm trying to read csv file using R notebook and keep getting this error:

Error: 'Examples/data/starbucks.csv' does not exist in current 
working directory ('C:/Users/c227466/Desktop')

I'm not sure what's going on! This is the code I used:

starbucks <- read_csv("Examples/data/starbucks.csv")
starbucks

jay.sf
  • 60,139
  • 8
  • 53
  • 110
RazK
  • 11
  • 2
  • 2
    The error is telling you that there is no folder called "Examples" in folder "Desktop" try `read_csv(file.choose())` to look through your folders to find the folder called "Examples" and the file called "starbucks.csv". – dcarlson Apr 22 '22 at 03:05

1 Answers1

0

Your working directory is your desktop (which is not recommended). On your desktop, you should add a folder "Examples" and, in it, another folder "data" and your file there.