str_to_camel {stringr}R Documentation

Convert between different types of programming case

Description

Usage

str_to_camel(string, first_upper = FALSE)

str_to_snake(string)

str_to_kebab(string)

Arguments

string

Input vector. Either a character vector, or something coercible to one.

first_upper

Logical. Should the first letter be capitalized?

Examples

str_to_camel("my-variable")
str_to_camel("my-variable", first_upper = TRUE)

str_to_snake("MyVariable")
str_to_kebab("MyVariable")

[Package stringr version 1.6.0 Index]