I dont manage to read this csv with fread:
➜ Downloads cat t2.csv
47616412|76-398-12||||7639812
47616413|53-1696-18||||53169618
i think it's because in vim I see those characters:
47616412|76-398-12||^@||7639812
and fread puts a linebreak at column 4. how to deal with that?
edit 1
notice that the standard console output does not show those characters:
➜ Downloads cat t2.csv
47616412|76-398-12||||7639812
47616413|53-1696-18||||53169618
I only see them in vim:
47616412|76-398-12||^@||7639812
47616413|53-1696-18||^@||53169618
edit 2
notice further that read.csv
with skipNul
works:
> read.csv("t2.csv", sep="|",header=FALSE,skipNul=TRUE)
V1 V2 V3 V4 V5 V6
1 47616412 76-398-12 NA NA NA 7639812
2 47616413 53-1696-18 NA NA NA 53169618
edit 3
here is the file! dropbox download