powered by
Map values of a vector.
map_values(x, map)
vector.
named vector mapping names to values.
vector
# NOT RUN { x <- c('red','green','red','blue') map_values(x, map = c( 'red' = 'yellow', 'blue' = 'orange')) # } # NOT RUN { # }
Run the code above in your browser using DataLab