Skip to content

Instantly share code, notes, and snippets.

@valtoni
Created September 13, 2022 17:44
Show Gist options
  • Save valtoni/8e8bd315f63fbea31ae57287a9d1ab41 to your computer and use it in GitHub Desktop.
Save valtoni/8e8bd315f63fbea31ae57287a9d1ab41 to your computer and use it in GitHub Desktop.
DT = data.table(A=c("Peter Parker", "Bruce Wayne", "Barry Allen", "Diana", "Clark Kent"),
B=c("Spiderman", "Batman", "Flash", "Wonderwoman", "Superman"),
C=c("Dr. Octopus", "Joker", "Magenta", "Baroness Paula von Gunther", "Lex Luthor"))
d1 <- copy(DT)
d2 <- copy(DT)
d3 <- copy(DT)
setorder(d1, A)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment