title: Error in is.data.frame(x) : object '' not found , how could I fix this?
body: <p>I'm trying to run correlations on R.</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>library("foreign")
  mydata&lt;-read.csv(" ",header=FALSE)
  options(max.print=1000000)
  attach(mydata)
  cor(as.numeric(agree_election),as.numeric(agree_party))
  </code></pre>
  
  <p>Then it gives me the error that object "agree_election" is not an object.</p>
  
  <p>However, agree_election is just one of the headers of my columns for my excel spreadsheet.How do I fix this?</p>