Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

switch variable position in r dplyr

dplyr::relocate(df, x, .before = y, .after = z)
#Specifying either .before and .after would work too
Source by datacornering.com #
 
PREVIOUS NEXT
Tagged: #switch #variable #position #dplyr
ADD COMMENT
Topic
Name
4+6 =