Learn R Programming

janitor (version 0.3.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 {
# not run:
# clean_names(poorly_named_df)

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

Run the code above in your browser using DataLab