R not being able to find the file despite being in correct directory I have question regarding a project I have to do about a health student study. I cannot import the csv file via read.csv or read.csv2 despite having transformed all files to csv and being in the correct folder.
Here are the command lines:
setwd (&quot;C:/Users/fek/Desktop/Analyse i-Share&quot;)
getwd()
TA&lt;-read.csv2(file=Biobanque.csv, header=TRUE, sep=&quot;,&quot;, dec=&quot;,&quot;, fill=TRUE)

And here are the results in the console window:
setwd (&quot;C:/Users/fek/Desktop/Analyse i-Share&quot;)

getwd()

[1] &quot;C:/Users/fek/Desktop/Analyse i-Share&quot;
TA&lt;-read.csv2(file=Biobanque.csv, header=TRUE, sep=&quot;,&quot;, dec=&quot;,&quot;, fill=TRUE)

[1] Error in read.table(file = file, header = header, sep = sep, quote = quote,  :
objet 'Biobanque.csv' introuvable
To translate from french, it says it can't find the file!
The problem is just what it says.  By omitting the quotes around &quot;Biobanque.csv&quot;, R thinks you are talking about an object whose name is Biobanque.csv. And R is confused because of course you have not created an object by that name.