Learn R Programming

omopgenerics (version 1.1.1)

toSnakeCase: Convert a character vector to snake case

Description

Convert a character vector to snake case

Usage

toSnakeCase(x)

Value

A snake_case vector

Arguments

x

Character vector to convert

Examples

Run this code
toSnakeCase("myVariable")

toSnakeCase(c("cohort1", "Cohort22b"))

Run the code above in your browser using DataLab