format_column_names: Format columns names to lower, UPPER or Title.Case

Description Usage Arguments Value

Description

Format columns names to lower, UPPER or Title.Case

Usage

1
2
format_column_names(df, type = "lower", replace_symbol = ".",
  make_unique = T)

Arguments

df

which data frame to replace it in

replace_symbol

character replace all non-alpha characters with specified character (e.g. "_" or "."), removes leading/trailing

make_unique

boolean use make.names(unique = T) to make enforce valid unique names

convert_case

character default="lower", also accepts "Title", "UPPER" specify convert.case = "" to leave alone. NOTE: make_unique overrides this by always converting to "lower"

Value

df with renamed columns


dkrozelle/toolboxR documentation built on May 15, 2019, 9:13 a.m.