View source: R/fix_functions.R
nice_names | R Documentation |
Changes names of a data frame to ease work with them
nice_names(x, select = 1:ncol(x), tolower = TRUE, track = TRUE)
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? |
The input data.frame x
with the fixed names
d <- data.frame('Variable 1'=NA, '% Response'=NA, ' Variable 3'=NA,check.names=FALSE)
names(d)
names(nice_names(d))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.