mapvalues | R Documentation |
This is basically a copy or reimplementation of the
plyr::mapvalues()
function.
It takes an input vector x
as well as two vectors from
and
to
that act as a dictionary for the mapping.
mapvalues(x, from, to)
x |
( |
from |
( |
to |
( |
(any
)
A vector. It may be of a different type than the input vector x
,
depending on your inputs for from
and to
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.