-
Notifications
You must be signed in to change notification settings - Fork 991
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
Another seemingly bug in dealing with NAs #5273
Comments
I tried with Here is an example for read.csv
And, |
My interpretation of txt = r"(
NA,"XX","",
"XX",,"",NA
"",NA,,"XX"
)" is based on NA,"XX","",
"XX",,"",NA
"",NA,,"XX" Notice the empty line on the top that
Which explains why the third column is read as a set of logical > fread(txt, header = FALSE)
V1 V2 V3 V4
<char> <char> <lgcl> <char>
1: <NA> XX NA
2: XX NA <NA>
3: <NA> NA XX is a little confusing, because the column after the comma
but that is also probably because |
@avimallu |
According to my analysis on text data file, |
Too much requirement readings... I think I did my best :)
NA
seems to cause all sorts of problem...Here is my Minimal Example.
Here is what it should do(it is just that
"NA"
is changed to"XX"
)except for one thing that
V3
are all NAs... where is""
?It doesnot matter whether or not you set
na.strings = 'NA'
The text was updated successfully, but these errors were encountered: