Learn R Programming

dbWebForms (version 0.1.0)

namesToLabels: Convert strings to title case, splitting strings into separate words based on a separator.

Description

Convert strings to title case, splitting strings into separate words based on a separator.

Usage

namesToLabels(x, split = "_")

Arguments

x

A string.

split

A string, used to split x into constituent words to be converted to title case.

Value

A string, converted to title case with split words separated with a space character.

Examples

Run this code
# NOT RUN {
namesToLabels("date_of_birth", split = "_")
# }

Run the code above in your browser using DataLab