mario icon indicating copy to clipboard operation
mario copied to clipboard

multiple consecutive arrange() calls looks odd

Open pgbovine opened this issue 4 years ago • 1 comments

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)

pgbovine avatar Nov 30 '21 18:11 pgbovine

[ @seankross -- we can probably hold off until v2 so as not to rock the boat ]

pgbovine avatar Dec 03 '21 02:12 pgbovine