Created
November 20, 2024 21:32
-
-
Save ashirwad/44a3e3218621da717755882569bf79cd to your computer and use it in GitHub Desktop.
[Arrange rows in a custom order] #dplyr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mtcars |> dplyr::arrange(match(cyl, c(6, 8, 4))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment