replaceElement | R Documentation |
Replaces elements of a vector based on the dictonary provided
replaceElement(vector, dictionary = NULL, labels = NULL, NAreplace = NA)
vector |
a vector |
dictionary |
a named vector or just a vector if labels are provided |
labels |
a character vector |
NAreplace |
that to put instead of NAs |
A list with $newVector and $dictionary.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.