# NOT RUN {
df <- data.frame(
a = c("NA", "n/a", 1, NA),
b = c("three", "na", NaN, " N/A "),
stringsAsFactors = FALSE
)
df
fix_na_ish(df)
fix_na_ish(df, extra_na = "three", new_val = "0")
# }
Run the code above in your browser using DataCamp Workspace