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