Description Usage Arguments Value Examples
Map Names Flexibly in a Data.Frame or Vector A wrapper for 'mapvalues' (which only supports vectors, not data frames), with the same mapping rules. 'from' and 'to' must have equal lengths.
1 |
df |
: a data frame whose names need changed |
from |
: a character vector with old col names. |
to |
: a character vector with new col names. |
df : a dataframe with the same values as input, but possibly replaced colnames
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.