powered by
Changes names of a data frame to ease work with them
nice_names(x, select = 1:ncol(x), tolower = TRUE, track = TRUE)
The input data.frame x with the fixed names
x
A data.frame
Numeric vector with the positions (all by default) to be affected by the function
Set all names to lower case?
Track changes?
d <- data.frame('Variable 1'=NA, '% Response'=NA, ' Variable 3'=NA,check.names=FALSE) names(d) names(nice_names(d))
Run the code above in your browser using DataLab