Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r rename column based on variable

df %>% rename(!!variable := name_of_col_from_df)
Source by community.rstudio.com #
 
PREVIOUS NEXT
Tagged: #rename #column #based #variable
ADD COMMENT
Topic
Name
9+2 =