{
  "id": 10796,
  "title": "Submission Problems (user error)",
  "url": "/competitions/avazu-ctr-prediction/discussion/10796",
  "author_name": "",
  "post_date": "2014-10-30T15:24:59.497Z",
  "votes": null,
  "comment_count": 3,
  "views": 1266,
  "content": "<p>I am&nbsp;having trouble uploading a valid submission created using R. When I download and submit the sampleSubmission.csv it works fine. When I read the sample into R and write it back out it won't take it.&nbsp;</p>\n<p>I get this error.</p>\n<p>&quot;Unable to find 4754327 required key values in the 'id' column<br>Unable to find the required key value '10000071436555295962' in the 'id' column.&nbsp;Unable to find the required key value ...&quot; It goes on.</p>\n<p>I have tried write.csv and write.table. I think it has something to do with the lengths of ids. I'm using write.csv(submission, &quot;file&quot;, row.names=F).&nbsp;</p>\n<p>When I write a file to csv and read it back into R it seems to maintain all its values.</p>\n<p>Any thoughts? Thanks.</p>",
  "messages": [
    {
      "id": "57047",
      "postDate": "10/30/2014 15:24:59",
      "content": "<p>I am&nbsp;having trouble uploading a valid submission created using R. When I download and submit the sampleSubmission.csv it works fine. When I read the sample into R and write it back out it won't take it.&nbsp;</p>\n<p>I get this error.</p>\n<p>&quot;Unable to find 4754327 required key values in the 'id' column<br>Unable to find the required key value '10000071436555295962' in the 'id' column.&nbsp;Unable to find the required key value ...&quot; It goes on.</p>\n<p>I have tried write.csv and write.table. I think it has something to do with the lengths of ids. I'm using write.csv(submission, &quot;file&quot;, row.names=F).&nbsp;</p>\n<p>When I write a file to csv and read it back into R it seems to maintain all its values.</p>\n<p>Any thoughts? Thanks.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57055",
      "postDate": "10/30/2014 17:32:53",
      "content": "<p>There's a good chance the 'id' is written in scientific notation in the output file.</p>\n<p>Try issuing this command before calling write.csv:</p>\n<p>options(scipen=999)</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57072",
      "postDate": "10/30/2014 20:28:56",
      "content": "<p>I read the 'id' column as character.&nbsp;That seems to work.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "57081",
      "postDate": "10/30/2014 23:58:13",
      "content": "<p>Thanks guys. Scipen didn't work. Something with the way it wrote it out still wasn't right. Reading the column in as character worked.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 57055,
      "author_name": "speculation",
      "author_url": "",
      "post_date": "10/30/2014 17:32:53",
      "content": "<p>There's a good chance the 'id' is written in scientific notation in the output file.</p>\n<p>Try issuing this command before calling write.csv:</p>\n<p>options(scipen=999)</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57072,
      "author_name": "jross225",
      "author_url": "",
      "post_date": "10/30/2014 20:28:56",
      "content": "<p>I read the 'id' column as character.&nbsp;That seems to work.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 57081,
      "author_name": "jasonsumpter",
      "author_url": "",
      "post_date": "10/30/2014 23:58:13",
      "content": "<p>Thanks guys. Scipen didn't work. Something with the way it wrote it out still wasn't right. Reading the column in as character worked.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "57047": "",
    "57055": "",
    "57072": "",
    "57081": ""
  },
  "source": "meta"
}