powered by
Arrange all rows in either ascending or descending order by a selection of variables.
arrange_across.(.df, .cols = everything(), .fns)
A data.table or data.frame
vector c() of unquoted column names. tidyselect compatible.
c()
tidyselect
Function to apply. If desc. it arranges in descending order
desc.
# NOT RUN { test_df <- tidytable(a = c("a", "b", "a"), b = 3:1) test_df %>% arrange_across.() test_df %>% arrange_across.(a, desc.) # }
Run the code above in your browser using DataLab