| convert_snake_to_title_case | R Documentation |
Converts a snake_case string to Title Case.
convert_snake_to_title_case(string)
string |
A character string in snake_case format. |
This function is useful for formatting strings in a more readable way, especially when dealing with variable names or identifiers that use snake_case. This function takes a snake_case string and converts it to Title Case. It replaces underscores with spaces, capitalizes the first letter of each word, and replaces the substring "cum" with "cumulative" for better readability.
A character string converted to Title Case.
Antti Lennart Rask
Other Utility Functions:
confidence_interval(),
generate_caption(),
get_attributes(),
rand_walk_column_names(),
rand_walk_helper(),
running_quantile(),
std_cum_max_augment(),
std_cum_mean_augment(),
std_cum_min_augment(),
std_cum_prod_augment(),
std_cum_sum_augment(),
subset_walks()
convert_snake_to_title_case("hello_world") # "Hello World"
convert_snake_to_title_case("this_is_a_test") # "This Is A Test"
convert_snake_to_title_case("cumulative_sum") # "Cumulative Sum"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.