# Recode the value of a vector

### Description

Recode the value of a `vector`

or `matrix`

.

### Usage

1 | ```
recode(x, from, to)
``` |

### Arguments

`x` |
a |

`from` |
original value of |

`to` |
new value of |

### Value

recoded `x`

### Author(s)

TszKin Julian Chan ctszkin@gmail.com

### Examples

1 2 3 |