powered by
Apply a mapping to a vector directly. The mapping is temporary and not saved.
remap(x, ...)
The values returned by calling the mapping function.
mapping
The values to apply the mapping to.
Passed to mapping().
mapping()
x <- c("A", "B", "A") remap(x, c(A=0, B=1))
Run the code above in your browser using DataLab