convert2.Rd
Replaces all occurrences of a specified value with another value within a data frame.
convert2(data, from = "", to = "")
A data frame where value replacement will be performed.
Original value to be replaced.
New value that will replace the original value.
A modified data frame with specified value replacements.
df <- data.frame(a = c(1, 2, 3), b = c("", "y", "z"))
convert2(df, from = "", to = NA)