Add NA for a given value
treat_na.Rd
Add NA for a given value
Examples
x = sample(c("red", "blue"), 10, replace = TRUE)
floodam.data:::treat_na(x, "red")
#> [1] NA NA NA NA NA NA "blue" NA NA NA
floodam.data:::treat_na(x, "blue")
#> [1] "red" "red" "red" "red" "red" "red" NA "red" "red" "red"
floodam.data:::treat_na(x, "green")
#> [1] "red" "red" "red" "red" "red" "red" "blue" "red" "red" "red"