toCamelCase: Convert a string from snake_case to camelCase

View source: R/netcdf.R View source: R/base.R

toCamelCaseR Documentation

Convert a string from snake_case to camelCase

Description

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’.

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)

toCamelCase(s)

Arguments

s

character value to be converted.

Value

toCamelCase() returns a camelCase version of s.

toCamelCase() returns a camelCase version of s.

Author(s)

Dan Kelley

Examples

toCamelCase("profile_direction") # "profileDirection"

toCamelCase("profile_direction") # "profileDirection"


dankelley/oceanglider documentation built on June 8, 2025, 4:20 a.m.