mario
mario copied to clipboard
multiple consecutive arrange() calls looks odd
I haven't investigated in depth yet:
library(data.table)
library(dplyr)
T = data.table(
ID = c("this","is","a","data.table","which","also", "works"),
a = 1:7,
b = 7:13,
c = 13:19
)
# why is the "a" column still highlighted when i do arrange(b) and arrange(c)?
T %>% slice(5:1) %>% arrange(a) %>% arrange(b) %>% arrange(c)
it also happens with a tibble:
library(dplyr)
T = tibble(
ID = c("this","is","a","tibble","which","also", "works"),
a = 1:7,
b = 7:13,
c = 13:19
)
# why is the "a" column still highlighted when i do arrange(b) and arrange(c)?
T %>% slice(5:1) %>% arrange(a) %>% arrange(b) %>% arrange(c)
[ @seankross -- we can probably hold off until v2 so as not to rock the boat ]