Skip to contents

Convert a snake-case string (i.e., one constructed with words separated by underlines) to a camel-case string (i.e. one in which the words are strung together, with upper-case for the first letter of all but the first word). See ‘Examples’.

Usage

toCamelCase(s)

Arguments

s

character value to be converted.

Value

toCamelCase() returns a camelCase version of s.

Author

Dan Kelley

Examples

toCamelCase("profile_direction") # "profileDirection"
#> [1] "profileDirection"