code_book <- list(
data.frame("old" = c("rating","complaints"), "new" = c("RATING","COMPLAINTS")),
data.frame("old" = c("privileges","learning"), "new" = c("PRIVILEGES","LEARNING"))
)
renames(data = attitude, codebook = code_book, old = "old", new = "new")
Run the code above in your browser using DataLab