Description Usage Arguments Examples
Given a dataframe and a series of key-value pairs, replaced all the key matches within the column names of the dataframe with their corresponding values, and returns a data frame as a result.
1  | 
data | 
 The input dataset  | 
... | 
 A series of key value pairs (in character form) of target variables and what they currently are in the dataset  | 
1 2  | # Turns the Girth column in trees into an Alpha column
rename_cols(trees, 'Alpha' = 'Girth')
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.