Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fread autofill NA or NULL for empty columns #766

Closed
markdanese opened this issue Aug 14, 2014 · 1 comment
Closed

Fread autofill NA or NULL for empty columns #766

markdanese opened this issue Aug 14, 2014 · 1 comment
Labels

Comments

@markdanese
Copy link

I have a file with 10 columns. The first 4 are always filled with a person's basic information. The last 6 may, or may not, have data in them, and they are filled in order (e.g., column 1, column 2, . . . , column 6). When the first empty field occurs (for example, after column 4), the line ends. It would be great to autofill NA for the remaining columns. Read.delim handles it, albeit slowly. In this case, fread can't detect the number of columns properly, even with header = T, because almost no rows have data in all columns.

@mattdowle
Copy link
Member

Agreed, would be great.
But closing since duplicate of #536.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants