DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+5 =
Submit