If you have two or more downloaded packages that contain functions with the same name, you will need to use the double-column operator :: to get the version of the function from the package that was not the last downloaded package (I hope this makes sense).
Thus, in terms of these two packages, this means dplyr::rename() use the dplyr or reshape::rename() version to use the reshape version depending on the location of the packages in the search path.
Since you downloaded the reshape package after downloading the dplyr package, you need dplyr::rename() use the rename() function from the dplyr package. rename() independently sends to the reshape version in this case.
iris[1:10,] %>% dplyr::rename(petal_length = Petal.Length)
gotta do the trick.
source share