str_case_camel: Convert string to camel case.

Description Usage Arguments Value Examples

Description

Transform a character vector into a camel case representation. First, convert 'x_chr' to title case with str_case_title Second, remove spaces Third, lower first character of each str if 'lower'

Usage

1
str_case_camel(x_chr, lower = TRUE)

Arguments

x_chr

A character vector with snake_case_formatting

Value

A character vector the same len as x_chr, with CamelCaseFormatting

Examples

1
2
str_case_camel(x_chr = c("from_snake_case", "From Title Case"))
str_case_camel(x_chr = c("from_snake_case", "From Title Case"), lower=FALSE)

mbadge/MyUtilsR documentation built on May 27, 2019, 1:08 p.m.