rename_base | R Documentation |
'tidy_df()' is a function used to transform a data.frame into its tidy version (one variable per column)
rename_base(df, old_colname, new_colname)
df |
an untidy data.frame |
untidy_col |
a vector of column names that are not tidy (e.g. "wild boars") |
new_col |
a string indicating the new column names corresponding to the untidy columns (e.g. "species") |
new_value |
a string indicating the name of the value corresponding to the untidy columns (e.g. "individualCount") |
Used in func: tidy_data
a tidy data.frame of data, with new column names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.