powered by
mapValues(data, oldValue, newValue)
data <- c("A", "B", "C", "X", "Y", "Z") oldValue <- LETTERS[1:20] newValue <- letters[1:20] results <- mapValues(data, oldValue, newValue)
Run the code above in your browser using DataLab