Replacement for "rename" in dplyr
dplyr, r, rename
Solution
dplyr version 0.3 added a new `rename()` function that works just like `plyr::rename()`, but with the old and new names switched:
df <- rename(df, new_name = old_name)
Problem
I like plyr's renaming function `rename`. I have recently started using dplyr, and was wondering if there is an easy way to rename variables using a function from dplyr, that is as easy to use as to plyr's `rename`?