{
  "id": 9724,
  "title": "The ids  after the 202513283rd row in transactions data are showing as 'NA'",
  "url": "/competitions/acquire-valued-shoppers-challenge/discussion/9724",
  "author_name": "",
  "post_date": "2014-07-12T10:02:13.007Z",
  "votes": null,
  "comment_count": 4,
  "views": 1898,
  "content": "<p>I am reading the transactions data set in R using :</p>\n<p>x&lt;-read.csv.ffdf(file=&quot;transactions.csv&quot;, header=TRUE, VERBOSE=TRUE, nrows=350000000, next.rows=10000000, colClasses=NA)</p>\n<p>The values of the ids after 202513283rd row are showing as NA. Is there some argument that should be passed in read.csv.ffdf to make them valid(is it due to some limit on values accepted) or are they really NA....?&nbsp;</p>",
  "messages": [
    {
      "id": "50389",
      "postDate": "07/12/2014 10:02:13",
      "content": "<p>I am reading the transactions data set in R using :</p>\n<p>x&lt;-read.csv.ffdf(file=&quot;transactions.csv&quot;, header=TRUE, VERBOSE=TRUE, nrows=350000000, next.rows=10000000, colClasses=NA)</p>\n<p>The values of the ids after 202513283rd row are showing as NA. Is there some argument that should be passed in read.csv.ffdf to make them valid(is it due to some limit on values accepted) or are they really NA....?&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "50414",
      "postDate": "07/12/2014 19:39:19",
      "content": "<p>Someone please reply to this&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "50451",
      "postDate": "07/14/2014 00:09:03",
      "content": "<p>I am very new to kaggle and just trying to learn about applying data analysis on large data sets in<strong> R</strong>. I am really stuck on this and want to know out of curiosity that after some value around <strong>202 Millionth row</strong> the values of customer ids are shown as NA when read by using <strong>read.csv.ffd</strong>f, are they really NA or &nbsp;is it due to some memory limit of this command...? The command that I am using:</p>\n<p><strong><em>read.csv.ffdf(file=&quot;transactions.csv&quot;, header=TRUE, VERBOSE=TRUE, nrows=350000000, next.rows=10000000, colClasses=NA)</em></strong></p>\n\n<ul>\n<li><span style=\"line-height: 1.4\">I have 16 gigs of Ram, but </span><strong style=\"line-height: 1.4\">read.table</strong><span style=\"line-height: 1.4\"> and </span><strong style=\"line-height: 1.4\">fread</strong><span style=\"line-height: 1.4\"> is unable to read beyond 100 Millionth row. In </span><strong style=\"line-height: 1.4\">read.table if I skip 100 Million rows</strong><span style=\"line-height: 1.4\"> and try to read 50 Million rows beyond that, even then it doesn't work. I mean it takes more than 2 hrs and I stop the interpreter in between</span></li>\n</ul>\n<p><strong><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read.table(file = &quot;transactions.csv&quot;, header = TRUE, sep = &quot;,&quot;, skip =100000000, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nrows = 50000000)</em></strong></p>\n<ul>\n<li><span style=\"line-height: 1.4\">&nbsp;And </span><strong style=\"line-height: 1.4\">read.csv.ffdf</strong><span style=\"line-height: 1.4\"> reads till the end in about 20 minutes, but gives NA customer ids as I have mentioned &nbsp;above, but all other columns are displayed correctly by</span> this command<span style=\"line-height: 1.4\">.</span></li>\n</ul>\n\n<p>Someone please suggest the&nbsp;mistake&nbsp; that I making in<strong> read.csv.ffdf</strong> or suggest some other command that can do the job in lesser time.&nbsp;</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "50452",
      "postDate": "07/14/2014 00:35:22",
      "content": "<p>See:</p>\n<p>https://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/8258/fread-function-in-r</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/8249/python-script-to-read-the-transactions-csv</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/8298/trouble-loading-transactions-csv-into-r</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/9394/my-r-code-is-too-slow</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/9507/read-specific-range-of-rows-from-a-transaction-csv-in-r</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "50481",
      "postDate": "07/14/2014 16:54:41",
      "content": "<p>Do you have a 64 bit version of R &gt;3.0? &nbsp;It may be that your machine cannot allocate enough RAM to the R process.</p>\n\n<p>There could also be issues if you are using windows... it's been a while since I've used R on windows, but I think there are per-process RAM limits.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 50414,
      "author_name": "shreedharpawar",
      "author_url": "",
      "post_date": "07/12/2014 19:39:19",
      "content": "<p>Someone please reply to this&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 50451,
      "author_name": "shreedharpawar",
      "author_url": "",
      "post_date": "07/14/2014 00:09:03",
      "content": "<p>I am very new to kaggle and just trying to learn about applying data analysis on large data sets in<strong> R</strong>. I am really stuck on this and want to know out of curiosity that after some value around <strong>202 Millionth row</strong> the values of customer ids are shown as NA when read by using <strong>read.csv.ffd</strong>f, are they really NA or &nbsp;is it due to some memory limit of this command...? The command that I am using:</p>\n<p><strong><em>read.csv.ffdf(file=&quot;transactions.csv&quot;, header=TRUE, VERBOSE=TRUE, nrows=350000000, next.rows=10000000, colClasses=NA)</em></strong></p>\n\n<ul>\n<li><span style=\"line-height: 1.4\">I have 16 gigs of Ram, but </span><strong style=\"line-height: 1.4\">read.table</strong><span style=\"line-height: 1.4\"> and </span><strong style=\"line-height: 1.4\">fread</strong><span style=\"line-height: 1.4\"> is unable to read beyond 100 Millionth row. In </span><strong style=\"line-height: 1.4\">read.table if I skip 100 Million rows</strong><span style=\"line-height: 1.4\"> and try to read 50 Million rows beyond that, even then it doesn't work. I mean it takes more than 2 hrs and I stop the interpreter in between</span></li>\n</ul>\n<p><strong><em>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read.table(file = &quot;transactions.csv&quot;, header = TRUE, sep = &quot;,&quot;, skip =100000000, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nrows = 50000000)</em></strong></p>\n<ul>\n<li><span style=\"line-height: 1.4\">&nbsp;And </span><strong style=\"line-height: 1.4\">read.csv.ffdf</strong><span style=\"line-height: 1.4\"> reads till the end in about 20 minutes, but gives NA customer ids as I have mentioned &nbsp;above, but all other columns are displayed correctly by</span> this command<span style=\"line-height: 1.4\">.</span></li>\n</ul>\n\n<p>Someone please suggest the&nbsp;mistake&nbsp; that I making in<strong> read.csv.ffdf</strong> or suggest some other command that can do the job in lesser time.&nbsp;</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 50452,
      "author_name": "triskelion",
      "author_url": "",
      "post_date": "07/14/2014 00:35:22",
      "content": "<p>See:</p>\n<p>https://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/8258/fread-function-in-r</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/8249/python-script-to-read-the-transactions-csv</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/8298/trouble-loading-transactions-csv-into-r</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/9394/my-r-code-is-too-slow</p>\n<p>http://www.kaggle.com/c/acquire-valued-shoppers-challenge/forums/t/9507/read-specific-range-of-rows-from-a-transaction-csv-in-r</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 50481,
      "author_name": "zachmayer",
      "author_url": "",
      "post_date": "07/14/2014 16:54:41",
      "content": "<p>Do you have a 64 bit version of R &gt;3.0? &nbsp;It may be that your machine cannot allocate enough RAM to the R process.</p>\n\n<p>There could also be issues if you are using windows... it's been a while since I've used R on windows, but I think there are per-process RAM limits.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "50389": "",
    "50414": "",
    "50451": "",
    "50452": "",
    "50481": ""
  },
  "source": "meta"
}