nice_names {clickR}R 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))

[Package clickR version 0.9.39 Index]