{"action":"opened","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1126","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1126/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1126/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1126/events","html_url":"https://github.com/Rdatatable/data.table/issues/1126","id":70264759,"number":1126,"title":"fread creates fields with null class values","user":{"login":"rickdonnelly","id":1524210,"avatar_url":"https://avatars.githubusercontent.com/u/1524210?v=3","gravatar_id":"","url":"https://api.github.com/users/rickdonnelly","html_url":"https://github.com/rickdonnelly","followers_url":"https://api.github.com/users/rickdonnelly/followers","following_url":"https://api.github.com/users/rickdonnelly/following{/other_user}","gists_url":"https://api.github.com/users/rickdonnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/rickdonnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickdonnelly/subscriptions","organizations_url":"https://api.github.com/users/rickdonnelly/orgs","repos_url":"https://api.github.com/users/rickdonnelly/repos","events_url":"https://api.github.com/users/rickdonnelly/events{/privacy}","received_events_url":"https://api.github.com/users/rickdonnelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-22T23:52:49Z","updated_at":"2015-04-22T23:52:49Z","closed_at":null,"body":"I am reading a comma-separated value file using fread with one text and seven numeric fields. You can download the file [here](https://dl.dropboxusercontent.com/u/3799361/105052039.csv). fread appears to work fine, but when tried operations on the data they returned NULL values. I discovered that all of the fields have a class of NULL. I tried reading the same data using read.table and it had no problem detecting the correct class of each field in the data. Here is the code I used to read the data:\r\n```\r\nraw <- fread(\"105052039.csv, verbose=TRUE)\r\n```\r\nThis results in the following output:\r\n```\r\nInput contains no \\n. Taking this to be a filename to open\r\nFile opened, filesize is 0.000322 GB.\r\nMemory mapping ... ok\r\nDetected eol as \\n only (no \\r afterwards), the UNIX and Mac standard.\r\nUsing line 30 to detect sep (the last non blank line in the first 'autostart') ... sep=','\r\nFound 8 columns\r\nFirst row with 8 fields occurs on line 1 (either column names or first row of data)\r\nAll the fields on line 1 are character fields. Treating as the column names.\r\nCount of eol after first data row: 4318\r\nSubtracted 0 for last eol and any trailing empty lines, leaving 4318 data rows\r\nType codes (   first 5 rows): 11433111\r\nType codes (+ middle 5 rows): 11433111\r\nType codes (+   last 5 rows): 11433111\r\nType codes: 11433111 (after applying colClasses and integer64)\r\nType codes: 11433111 (after applying drop or select (if supplied)\r\nAllocating 8 column slots (8 - 0 dropped)\r\n   0.000s (  2%) Memory map (rerun may be quicker)\r\n   0.000s (  2%) sep and header detection\r\n   0.000s (  7%) Count rows (wc -l)\r\n   0.001s ( 11%) Column type detection (first, middle and last 5 rows)\r\n   0.000s (  0%) Allocation of 4318x8 result (xMB) in RAM\r\n   0.005s ( 78%) Reading data\r\n   0.000s (  0%) Allocation for type bumps (if any), including gc time if triggered\r\n   0.000s (  0%) Coercing data already read in type bumps (if any)\r\n   0.000s (  0%) Changing na.strings to NA\r\n   0.006s        Total\r\n      Company  Equipment              EventTS  Latitude  Longitude  Speed  Ignition  TripStatus\r\n   1:   11002  105052039 2014-09-02T09:26:44Z  45.29940  -74.19991      0         0           0\r\n   2:   11002  105052039 2014-09-02T09:26:54Z  45.29940  -74.19991      0         0           0\r\n   3:   11002  105052039 2014-09-02T09:27:04Z  45.29940  -74.19991      0         0           0\r\n   4:   11002  105052039 2014-09-02T09:27:14Z  45.29940  -74.19991      0         0           0\r\n   5:   11002  105052039 2014-09-02T09:27:25Z  45.29940  -74.19991      0         0           0\r\n  ---                                                                                          \r\n4314:   11002  105052039 2014-09-30T23:19:13Z  45.29847  -74.20060      0         0           0\r\n4315:   11002  105052039 2014-09-30T23:34:13Z  45.29847  -74.20056      0         0           0\r\n4316:   11002  105052039 2014-09-30T23:34:13Z  45.29847  -74.20056      0         0           0\r\n4317:   11002  105052039 2014-09-30T23:49:13Z  45.29852  -74.20060      0         0           0\r\n4318:   11002  105052039 2014-09-30T23:49:13Z  45.29852  -74.20060      0         0           0\r\n```\r\nThe first field (raw$Company) is correctly classified as integer, but the remaining fields all inexplicably have a class of NULL."}}