Description Usage Arguments Value Examples
Makes a pair-wise substitions of a vector of values by another vector of values of same length.
1 |
x |
a numerical vector, matrix or data frame. |
old |
a vector of values to substitute. |
new |
a vector of values that will substitute old values. |
a vector with new values.
1 2 | # Replace 1 for 2, 2 for 3 and 3 for 4.
msub(1:3, 1:3, 2:4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.