Description Usage Arguments Value Examples
This utility function will recode values from an original character
or factor
vector with new values.
1 |
x |
the vector whose values will be recoded. |
from |
the old values in x to be recoded. |
to |
the new values. |
to.class |
an 'as.' function representing the desired vector type (i.e. as.character, as.numeric, as.logical, as.numeric). |
a vector with same length of x with recoded values.
1 2 |
Loading required package: ggplot2
Loading required package: xtable
[1] "Letter d" "Letter d" "Letter b" "Letter d" "Letter d" "Letter b"
[7] "Letter e" "Letter d" "Letter e" "Letter a"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.