A wrapper for the snake_case(), camelCase(), and period.case() functions.

change_case(df, case_style = c("snake_case", "camelCase", "period.case"))

Arguments

df

The dataframe, tibble, data.table, etc, with the variables you want to tidy.

case_style

The style to convert variable names to. Accepts one of "snake_case", "camelCase" and "period.case". Defaults to "snake_case".

Value

A dataframe, tibble, data.table, etc, with new and consistent cases for variable names.

Examples

# NOT RUN {
df <- change_case(df)

# }