cleanup_names: Clean up a vector of column names

View source: R/cleanup_names.R

cleanup_namesR Documentation

Clean up a vector of column names

Description

The function takes a vector of column names as an argument and returns a cleaned up version of it.

Usage

cleanup_names(x)

Arguments

x

A character vector

Details

The following changes are made: - names are converted to lower case - dots are replaced by underscores - underscores in the beginning and end of a string are removed - multiple underscores are replaced by a single one

Value

A character vector

Author(s)

Ian Kopacka


eufmdis.adapt documentation built on Sept. 12, 2023, 9:06 a.m.