powered by
Arrange in descending order. Can be used inside of arrange()
arrange()
desc.(x)
Variable to arrange in descending order
df <- data.table( a = 1:3, b = 4:6, c = c("a", "a", "b") ) df %>% arrange(c, desc(a))
Run the code above in your browser using DataLab