View source: R/CleanColumnNames.R
shorten_multiple_column_names | R Documentation |
Used to abbreviate multiple column names based on their last values. Typical RHoMIS column names come in the for "xxxx/xxxxx/xxxxx/important_name". This function helps to extract only the final value "important name". It will do this for multiple column names
shorten_multiple_column_names(long_names, seperator)
long_names |
The list of column names which need to be shortened |
seperator |
The string seperating parts of each column name |
Rpackage file: CleanColumnNames.R
A list of shortened column names
long_names <- c(
"xxxx/xxxxx/xxxxx/important_name_1",
"xxxx/xxxxx/xxxxx/important_name_2",
"xxxx/xxxxx/xxxxx/important_name_3"
)
seperator <- "/"
shortened_names <- shorten_multiple_column_names(long_names, seperator)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.