Description Usage Arguments Value Examples
View source: R/import_functions.R
Truncates long column names matching pattern.
1 | truncate_cols(df, pattern = pattern, replacement = replacement)
|
df |
A data frame. |
pattern |
character string containing a regular expression to trim. |
replacement |
a replacement for matched pattern in sub and gsub. |
A dataframe with truncated columns.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.