toDotSeparated: Convert String to Dot Separated Name

View source: R/Stringendo.R

toDotSeparatedR Documentation

Convert String to Dot Separated Name

Description

Converts a string from camelCase or underscore_separated format to dot.separated.name format. Inserts dots before each uppercase letter (except if it's the first character) or replaces underscores with dots, and then converts the entire string to lowercase.

Usage

toDotSeparated(input_string, toclipboard = TRUE)

Arguments

input_string

A character string in camelCase or underscore_separated format to be converted. Default: No default value, a string must be provided.

toclipboard

Copy to clipboard? Default: TRUE

Value

A character string converted to dot-separated format. The result is always in lowercase.

Examples

toDotSeparated("plotMetadataCorHeatMap")
toDotSeparated("plot_Metadata_Cor_HeatMap")

vertesy/Stringendo documentation built on Nov. 10, 2024, 4:35 a.m.