splitSnake: Split Snake Case String

View source: R/spelling.R

splitSnakeR Documentation

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)

Arguments

x

A character string in snake_case to be split.

Value

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

Examples

splitSnake("this_is_snake_case")
splitSnake("another_example_here")


FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.