Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

sort dataframe dplyr

# sort the dataframe in R using multiple variable with Dplyr
mydata %>% arrange(desc(mpg), gear)
 
PREVIOUS NEXT
Tagged: #sort #dataframe #dplyr
ADD COMMENT
Topic
Name
5+9 =