I\'m trying to add a common prefix to each of the variable names in a data.frame. For example, using the mtcars data, I could add the prefix \"cars.\" using th
mtcars
For future readers, dplyr now can do this with the select_if, select_at, and select_all functions:
dplyr
select_if
select_at
select_all
dplyr::select_all(mtcars, .funs = funs(paste0("cars.", .)))