change_names {shortIRT} | R Documentation |
Change the columns names of a data frame and stores the original column names
change_names(data)
data |
data.frame, A data frame |
A list of length two:
1. a data frame with the original column names and the corresponding new names
2. a data frame with the changed column names
# original data frame with 5 columns
data <- data.frame(matrix(1:20, nrow = 4, ncol = 5))
change_names(data)