-
Notifications
You must be signed in to change notification settings - Fork 977
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() does not always detect separator correctly when commas in text fields? #923
Comments
Seems to have been fixed in 1.9.5. Please test and write back if there are still issues. |
I am seeing a similar issue reading in a file with test <- fread("~/Desktop/tmp1.txt")
head(test)
V1 V2 V3 V4 V5
1: 1\t50000\t10673\tJUNC00000004\t12\t?\t50000\t10673\t255 0 0\t2\t83 55\t0 178
2: 1\t40000\t10533\tJUNC00000003\t42\t?\t40000\t10533\t255 0 0\t2\t89 55\t0 178
3: 1\t20000\t10343\tJUNC00000001\t57\t?\t20000\t10343\t255 0 0\t2\t95 55\t0 178
sessionInfo()
R version 3.3.0 (2016-05-03)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.6 (El Capitan)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.10.4
loaded via a namespace (and not attached):
[1] tools_3.3.0 I've attached a test file to reproduce this. setting the separator fixes the problem so i'm not sure if this is a bug, but maybe a warning should be produced? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should detect sep as "\t":
Removing the embedded comma detects sep correctly:
The text was updated successfully, but these errors were encountered: