to_snake_case: To snake case

Description Usage Arguments Value Examples

Description

A function to convert a sentence-like character string to a single element using snake case (i.e. punctuation removed, words to all lower case and separated by underscores). Useful for making variable names from natural language expressions. Inspired by Bob Rudis' docxtractr::mcga( ((https://github.com/hrbrmstr/docxtractr/)

Usage

1

Arguments

x

chr A character string

Value

A character string in snake case

Examples

1
to_snake_case("snakes are venomous, not poisonous!")

benmarwick/snakecaser documentation built on May 24, 2019, 3:04 a.m.