fix_names {radiant.data}R Documentation

Ensure column names are valid

Description

Ensure column names are valid

Usage

fix_names(x, lower = FALSE)

Arguments

x

Data.frame or vector of (column) names

lower

Set letters to lower case (TRUE or FALSE)

Details

Remove symbols, trailing and leading spaces, and convert to valid R column names. Opinionated version of make.names

Examples

fix_names(c(" var-name ", "$amount spent", "100"))

[Package radiant.data version 1.6.6 Index]