Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Pass a variable to dplyr "rename" to change columnname

df %>% rename(!!variable := name_of_col_from_df)
 
PREVIOUS NEXT
Tagged: #Pass #variable #dplyr #change #columnname
ADD COMMENT
Topic
Name
5+5 =