Learn R Programming

FastUtils (version 0.2.1)

splitSnake: Split Snake Case String

Description

This function splits a string formatted in snake_case into its component words, using underscores as delimiters. It is useful for parsing identifiers or variable names that follow snake_case naming conventions.

Usage

splitSnake(x)

Value

A list of character vectors, each containing the parts of the string split at underscores.

Arguments

x

A character string in snake_case to be split.

Examples

Run this code
splitSnake("this_is_snake_case")
splitSnake("another_example_here")

Run the code above in your browser using DataLab