move selected rows to target location
move_row(df, rows, .after = FALSE, .before = FALSE)
reordered tibble
tibble
selected rows indexes
TRUE
will move selected rows to the last row,
or you can pass a target row index
TRUE
will move selected rows to the first row,
or you can pass a target row index
move_row(mini_diamond, 3:5, .after = 8)
Run the code above in your browser using DataLab