Skip to main content

normalize_names()

Normalize column names as diff_table() does.

Usage

Source

normalize_names(names)

Upper-case, every run of characters other than A-Z and 0-9 replaced by one _, and _ trimmed from both ends. A name that ends up empty, or two names that end up the same, are an error.