View source: R/advanced_R_studies.R
Takes in a dataframe, and returns the same dataframe with corrected columns.
Example:
countryCols <- c("origin", "transit", "destination")
df <- fixMultCols(df, countryCols, "Untied States", "United States")
1 | fixMultCols(df, cols, old, new)
|
df |
The dataframe you wish to correct. |
cols |
The names of the columns you wish to correct. |
old |
The text you want to replace. |
new |
The text you want to appear in place of the old text. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.