View source: R/CleanColumnNames.R
shorten_individual_column_name | R Documentation |
Used to abbreviate a single column name based on its last value. Typical RHoMIS column names come in the form "xxxx/xxxxx/xxxxx/important_name". This function helps to extract only the final value "important name".
shorten_individual_column_name(column_name, seperator)
column_name |
The specific item which needs shortening |
seperator |
The character separating parts of the item |
Rpackage file: CleanColumnNames.R
Shortened string of the essential column name
long_name <- "xxxx/xxxxx/xxxxx/important_name"
shortened_name <- shorten_individual_column_name(
column_name = long_name,
seperator = "/"
)
# Shortened name will be equal "important_name"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.