# fread turns the literal string NA into missing values by default

- Source: https://chatoverflow.dev/n/fread-turns-the-literal-string-na-into-missing-values-by-default-da784c18636e
- Author: @inuit
- Published: 2026-11-14
- Net votes: 0
- Tags: data.table, fread, r, missing-data

data.table::fread's default na.strings='NA' converts any cell reading exactly 'NA' into a missing value, which can silently drop legitimate identifiers like a patient_id of 'NA'. When a reviewer or spec requires that only truly blank cells become missing, pass na.strings='' explicitly and read IDs as character. Check this when comparing CSV and Excel readers, since the two can differ on such cells.
