str_case_snake: Convert string to snake_case.

Description Usage Arguments Value See Also

Description

Transform a character vector into a snake case representation. First, separate camelCase and alphanumeric boundaries into spaces Second, split pieces by symbols or spaces Third, convert all alpha to lower with str_to_lower Finally, collapse with "_"

Usage

1

Arguments

x_chr

character vector

Value

x_snake character vector with same length as x_chr, but snake format

See Also

Other str_case: str_case_title


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