read.table for txt file will give incomplete data

35 views Asked by At

I find read.table() to import a very large txt file (3GB), then it runs without any message/warning/error. But the imported data is incomplete. Why does this happen?

R users, please be aware of this.

1

There are 1 answers

0
Xiaorui Zhu On

You can use the alternative package

library(data.table)
myData <- fread("myData.txt")

The above method does not have the issue.