Answers for "Pass a variable to dplyr "rename" to change columnname"

0

Pass a variable to dplyr "rename" to change columnname

df %>% rename(!!variable := name_of_col_from_df)
Posted by: Guest on May-18-2021

Code answers related to "Pass a variable to dplyr "rename" to change columnname"

Browse Popular Code Answers by Language