You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm with @ckluss on this one, I think an na option would be helpful--I often get clients requesting specific missing encodings ("", " ", "NULL", but not "NA" so far). @hadley, what do you think? I'd be happy to implement it if you think it's a good idea.
+1.
This feature is very important. Say, PostgreSQL is expecting "\N" as NULLs when importing. MySQL is looking for "NULL" as NULL and so on. One can use this (very smart!) trick suggested by @npjc above but this will coerce types.
Activity
npjc commentedon Jun 16, 2015
Why not do:
IMHO this is clearer to understand at a glance and you keep data output and data mutation as distinct as possible.
asnr commentedon Jul 11, 2015
That's neat! I didn't know
is.naworked sensibly with data frames. However, this approach doesn't seem to play well with factors:and it also has the side effect of type casting integer, double and logical columns to character:
I'm with @ckluss on this one, I think an
naoption would be helpful--I often get clients requesting specific missing encodings (""," ","NULL", but not"NA"so far). @hadley, what do you think? I'd be happy to implement it if you think it's a good idea.realAkhmed commentedon Jul 13, 2015
+1.
This feature is very important. Say, PostgreSQL is expecting "\N" as NULLs when importing. MySQL is looking for "NULL" as NULL and so on. One can use this (very smart!) trick suggested by @npjc above but this will coerce types.