recode | R Documentation |
Recode the value of a vector
or matrix
.
recode(x, from, to)
x |
a |
from |
original value of |
to |
new value of |
recoded x
TszKin Julian Chan ctszkin@gmail.com
x=rep(1:5,each=2) recode(x,from=1:5,to=5:1) recode(x,from=1:5,to=11:15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.