.col_rename | R Documentation |
This helper function cleans and formats column names of a dataset for consistent and readable formatting.
.col_rename(dataset, rep_each = 1)
dataset |
A data frame or tibble whose column names need to be cleaned. |
rep_each |
An integer specifying the repetition count for column names. Defaults to |
The function removes unnecessary characters, trims whitespace, replaces certain patterns for consistency, and optionally
repeats the column names based on the rep_each
parameter.
A character vector containing cleaned and formatted column names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.