Replacing character values with NA in a data frame

This:

df[ df == "foo" ] <- NA

Leave a Comment