Description Usage Examples
A mnemonic for to[match(x, from)]. Compare with the more elaborate tran.
to[match(x, from)]
tran
1
map(from, to, x)
1 2 3 4
x.from <- c('A',"FromNA",'Z','B',"N") x.to <- factor(c('a',NA,'z','b',NA),levels=c('z','a','b',NA)) x <- c("Z","B",NA,"N","M") map(x.from, x.to, x)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.