View source: R/rename_fields.R
rename_fields | R Documentation |
This function facilitates the renaming of fields in a dataframe.
rename_fields(df = NULL, oldFields = NULL, newFields = NULL)
df |
default is |
oldFields |
default is |
newFields |
default is |
returns a data.frame with the new names.
The number of items in oldFields and newFields must be identical, and the order matters in that newFields[3] will replace oldFields[3].
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.