Skip to content

Could a str_to_snake function be made to convert strings to snake-case? #573

Open
@davidhodge931

Description

@davidhodge931

It'd be useful to have a str_to_snake function in stringr.

I think the main use for this would be to rename column names to snake-case:

rename_with(data, stringr::str_to_snake)

It would enable not taking on another package dependency with janitor::clean_names in many user's workflows

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions