title: Reading csv file using R and RStudio
body: <p>I am trying to read a csv file in R, but I am getting some errors.
  This is what I have and also I have set the correct path</p>
  <pre><code>mydata &lt;- read.csv(&quot;food_poisioning.csv&quot;)
  </code></pre>
  <p>But I am getting this error</p>
  <pre><code>Error in make.names(col.names, unique = TRUE) : 
    invalid multibyte string at '&lt;ff&gt;&lt;fe&gt;Y'
  In addition: Warning messages:
  1: In read.table(file = file, header = header, sep = sep, quote = quote,  :
    line 1 appears to contain embedded nulls
  2: In read.table(file = file, header = header, sep = sep, quote = quote,  :
    line 2 appears to contain embedded nulls
  </code></pre>
  <p>I believe I am getting this error because my csv file is actually not separated by comma, but it has spaces. This is what is looks like:
  <a href="https://i.stack.imgur.com/ZnoyQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZnoyQ.png" alt="enter image description here" /></a></p>
  <p>I tried using sep=&quot;  &quot;, but it didn't work.</p>