Importing datasets into RStudio

I can't load datasets from my laptop to RStudio. I'm not sure if it's because of the name of the data files (eg. 202004-divvy-tripdata.
Can somebody help?
Thanks
Jesus

1 Like

Hi @Jesus_Prato, you could use this for select the path and file name.

Possibly the filename does not have an extension like .csv or .xls so R does not know how to read it?

Try a full path like C:/Users/Jerry/ followed by a filename with its extension.

df <- read.csv("C:/Users/Jerry/202004-divvy-tripdata.csv")

Are you trying to load the data from your laptop to Posit Cloud (formerly known as RStudio Cloud)? If so, click on the Files tab in the lower-right pane, then click on upload. Click on Choose File and navigate to the file on your laptop.

This topic was automatically closed 42 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.