{
  "name": "fread arguments that matter for research data: defaults and effects",
  "description": "Compares eleven fread() arguments from the data.table reference documentation: the default value, what each argument does and the research-data problem it addresses. Compiled from the fread reference page and the Fast Read and Fast Write vignette; defaults are those listed in the Usage section of the development documentation.",
  "page": "https://casrai.org/guides/fread-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-21T09:05:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default",
      "unit": "",
      "description": ""
    },
    {
      "name": "Documented behaviour",
      "unit": "",
      "description": ""
    },
    {
      "name": "Research-data use",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Argument": "integer64",
      "Default": "\"integer64\"",
      "Documented behaviour": "Reads integers above 2^31 as bit64::integer64; alternatives are double/numeric or character",
      "Research-data use": "Long participant, sample or registry identifiers"
    },
    {
      "Argument": "keepLeadingZeros",
      "Default": "FALSE",
      "Documented behaviour": "TRUE reads numeric-looking columns with leading zeros as character",
      "Research-data use": "Identifiers such as 007 that must keep their zeros"
    },
    {
      "Argument": "colClasses",
      "Default": "NULL",
      "Documented behaviour": "Sets column types by an unnamed or named vector or list; a failed conversion is aborted for that column with a warning",
      "Research-data use": "Forcing identifiers to character"
    },
    {
      "Argument": "select / drop",
      "Default": "NULL",
      "Documented behaviour": "Keep or drop columns by name or number; select can carry types and sets result order",
      "Research-data use": "Limiting memory on wide exports"
    },
    {
      "Argument": "nrows",
      "Default": "Inf",
      "Documented behaviour": "nrows=0 returns column names and typed empty columns, a dry run of a large file",
      "Research-data use": "Inspecting a large file before reading it"
    },
    {
      "Argument": "na.strings",
      "Default": "getOption(\"datatable.na.strings\", \"NA\")",
      "Documented behaviour": ",, is read as NA in all column types; ,\"\", is an empty string",
      "Research-data use": "Matching the data dictionary's missing-value rule"
    },
    {
      "Argument": "skip",
      "Default": "\"__auto__\"",
      "Documented behaviour": "Starts at the first row with a consistent column count; a number or a string overrides it",
      "Research-data use": "Files with notes above the table"
    },
    {
      "Argument": "fill",
      "Default": "FALSE",
      "Documented behaviour": "TRUE estimates the column count and fills short rows; an integer sets an upper bound",
      "Research-data use": "Ragged exports"
    },
    {
      "Argument": "blank.lines.skip",
      "Default": "FALSE",
      "Documented behaviour": "Reading stops with a warning at a blank line followed by text unless the input has one column",
      "Research-data use": "Files with a footer or a second table"
    },
    {
      "Argument": "tz",
      "Default": "\"UTC\"",
      "Documented behaviour": "Unmarked date-times are read as UTC POSIXct; tz=\"\" reads them as character",
      "Research-data use": "Study-specific time zones"
    },
    {
      "Argument": "data.table",
      "Default": "TRUE",
      "Documented behaviour": "FALSE returns a data.frame",
      "Research-data use": "Passing the result to code that expects a data.frame"
    }
  ],
  "sources": [
    {
      "title": "data.table documentation: fread reference",
      "url": "https://rdatatable.gitlab.io/data.table/reference/fread.html",
      "accessed": "2026-11-17"
    },
    {
      "title": "data.table vignette: Fast read and fast write",
      "url": "https://rdatatable.gitlab.io/data.table/articles/datatable-fread-and-fwrite.html",
      "accessed": "2026-11-17"
    }
  ]
}