cl_clean_names: Clean data.table names to be lowercase and separated by a...

View source: R/cl_clean_names.R

cl_clean_namesR Documentation

Clean data.table names to be lowercase and separated by a period .

Description

This function uses the janitor::make_clean_names function, but replaces underscores with a period. Note that this function updates the data.table by reference

Usage

cl_clean_names(DT)

Arguments

DT

a data.table

Examples

DT <- data.table(`Var A` = 1, VarB = 2, var_c = 3)
print(cl_clean_names(DT))

ChandlerLutz/CLmisc documentation built on Dec. 2, 2022, 12:40 p.m.