Is there an equivalent dplyr
which does this? I'm after 'replace all' which matches string xxx with NA
is.na(df) <- df=="xxx"
I want to execute a sparklyr
command using the pipe function from R to Spark dataframe
tbl(sc,"df") %>%
and sticking the first script above doesn't work.
Replace "XXX" with the string you want to look for:
This method assesses each column in your data frame one-by-one and applies the function to lookup "XXX" and replace it with NA.