<p>The problem is just what it says.  By omitting the quotes around &quot;Biobanque.csv&quot;, R thinks you are talking about an <strong>object whose name is Biobanque.csv</strong>. And R is confused because of course you have not created an object by that name.</p>

CC BY-SA 4.0
2020-06-29T20:42:40.610Z
This is correct - the error message states that R cannot find the *object* 'Biobanque.csv', not that it cannot find the *file* 'Biobanque.csv' (which would give the error "No such file or directory").
Nuclear Hoagie
CC BY-SA 4.0
2020-06-29T17:54:36.117Z
2020-06-29T20:28:28.813Z
2020-06-29T20:28:28.813Z
swbarnes2
<p>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:</p>
<pre><code>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)
</code></pre>
<p>And here are the results in the console window:</p>
<pre><code>setwd (&quot;C:/Users/fek/Desktop/Analyse i-Share&quot;)

getwd()
</code></pre>
<p>[1] &quot;C:/Users/fek/Desktop/Analyse i-Share&quot;</p>
<pre><code>TA&lt;-read.csv2(file=Biobanque.csv, header=TRUE, sep=&quot;,&quot;, dec=&quot;,&quot;, fill=TRUE)
</code></pre>
<p>[1] Error in read.table(file = file, header = header, sep = sep, quote = quote,  :
objet 'Biobanque.csv' introuvable</p>
<p>To translate from french, it says it can't find the file!</p>

<r>
R not being able to find the file despite being in correct directory
# R not being able to find the file despite being in correct directory

(Asked by: username_0 on 2020-06-29)

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 ("C:/Users/fek/Desktop/Analyse i-Share")
getwd()
TA<-read.csv2(file=Biobanque.csv, header=TRUE, sep=",", dec=",", fill=TRUE)

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

getwd()

[1] "C:/Users/fek/Desktop/Analyse i-Share"
TA<-read.csv2(file=Biobanque.csv, header=TRUE, sep=",", dec=",", 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!

**Tags:** r

---

## 1 answers

### Answer by username_1 on 2020-06-29. Score: 4

The problem is just what it says. By omitting the quotes around "Biobanque.csv", 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.

> **Comments:**
> **username_2**: This is correct - the error message states that R cannot find the *object* 'Biobanque.csv', not that it cannot find the *file* 'Biobanque.csv' (which would give the error "No such file or directory").  

---

