I wondered if there was a one liner where I could replace all instances of string "NULL" in a DF across multiple fields with just NULL or NA?
exampledf <- data.frame(
a = c("NULL", "1/1/20", "2/28/20"),
b = c("NULL", "blah", "ha"),
c = c("NULL", "NULL", "cat")
)
Is there a one liner that would replace "NULL" across the entire df with NULL or NA?