Hello All, If anyone would be so kind to help a newbie out please, I am currently working on my first Case study for the data analytics certificate.
First, I was getting the following errors: "cannot open file '202406-divvy-tripdata.csv': No such file or directory"
I found the answer on this forum and figured I had to use the path. Then I get the following error: Error:
Summary
"'\U
' used without hex digits in character string (:1:24)"
These are the codes that I was trying to attempt:
Jul2024<- read.csv("L:\dgfng\xxxxx\akfjnjfn\lalalafdsknakdgfjn\asfjkajfb\202406-divvy-tripdata\202406-divvy-tripdata.csv")
Error: '\U' used without hex digits in character string (:1:24)
and
Jul2024<- read.csv("202406-divvy-tripdata.csv")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file '202406-divvy-tripdata.csv': No such file or directory
backslashes and forward slashes are both examples of file separators, these are Operating System dependendent ( think, Windows/Mac/Linux etc.) ;
R has handy function file.path() that knows what is appropriate for your system, and can put in the correct slash (or other seperator)
one would use it like so :