Why do I keep getting an error when trying to import my file?

59 views Asked by At

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

1

There are 1 answers

0
AudioBubble On

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.