Learn R Programming

tidyplus (version 0.2.0)

str_to_snake_case: Converts strings to Snake Case

Description

Converts strings to Snake Case

Usage

str_to_snake_case(x)

Value

string or strings converted to snake_case

Arguments

x

input string or multiple strings to be converted to snake case

Examples

Run this code
str_to_snake_case("string of words")

str_to_snake_case("StringOfWords")

str_to_snake_case("s!t$ring of %char^&act*ers")

str_to_snake_case(c("multiples of strings", "strings in multiple", "many strings"))

Run the code above in your browser using DataLab