Skip to content
Prev 377695 / 398502 Next

Spark DataFrame: replace NULL cell by NA

"...   if("factor" %in% class(x)) x <- as.character(x) ## since ifelse wont
work with factors  "
Nonsense!
[1] a   b
Levels:  a b
[1] ""  "a" "b"
[1] 2    <NA> 3
Levels: 2 3


Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sun, Dec 9, 2018 at 1:07 PM Karim Mezhoud <kmezhoud at gmail.com> wrote: