I'm curious why the arrange function won't will work for alphabetical order but not reverse alphabetical order.
df <- data.frame(string = as.character(c("b", "a", "c")), stringsAsFactors = F) df %>% arrange(string) #works df %>% arrange(-string) #does not work Am I just using the completely wrong method for what I'm trying to accomplish?
?arrange, there's adesc()function you can use. Fyi, if you have a data.table, it does work with your attempt:library(data.table); setDT(df); df %>% arrange(-string), though this is probably a dtplyr bug.-indplyrgenerally means "excluding` something, so I think it's better to not use-for descending inarrange