nice_names: Nice names

View source: R/fix_functions.R

nice_namesR Documentation

Nice names

Description

Changes names of a data frame to ease work with them

Usage

nice_names(x, select = 1:ncol(x), tolower = TRUE, track = TRUE)

Arguments

x

A data.frame

select

Numeric vector with the positions (all by default) to be affected by the function

tolower

Set all names to lower case?

track

Track changes?

Value

The input data.frame x with the fixed names

Examples

d <- data.frame('Variable 1'=NA, '% Response'=NA, ' Variable     3'=NA,check.names=FALSE)
names(d)
names(nice_names(d))

David-Hervas/clickR documentation built on Feb. 15, 2024, 8:33 p.m.