janitor (version 0.2.0)

clean_names: Cleans names of a data.frame.

Description

Resulting names are unique and consist only of the _ character, lowercase letters, and numbers.

Usage

clean_names(dat)

Arguments

dat
the input data.frame.

Value

Returns the data.frame with clean names.

Examples

Run this code
# not run:
# clean_names(poorly_named_df)

# library(dplyr) ; library(readxl)
# not run:
# readxl("messy_excel_file.xlsx") %>% clean_names()

Run the code above in your browser using DataCamp Workspace