make_names: Updated version of Base-R's 'make.names()' function.

View source: R/make_names.R

make_namesR Documentation

Updated version of Base-R's make.names() function.

Description

Makes R-compatible column names by removing spaces, points and other uncommon characters from dataframe column names and unifies their typography.

Usage

make_names(df = NULL, typo = c("capital", "small"))

Arguments

df

A data.frame

typo

Specify the column names typography. Use 'capital' for capital letters and 'small' to transform your column names into small letters.

Value

A data.frame with well-formated column names

Examples

cars_cleaned <- make_names(cars)
head(cars)

dominikjung42/dstools documentation built on June 16, 2024, 2:40 a.m.