I have tab delimited text file, named \'a.txt\'. The D column is empty.
A B C D 10 20 NaN 30 40 40 30 20 20
You can specify colClasses in the read.csv statement to read the column as text.
colClasses
read.csv