Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

baizer (version 0.8.0)

move_row: move selected rows to target location

Description

move selected rows to target location

Usage

move_row(df, rows, .after = FALSE, .before = FALSE)

Value

reordered tibble

Arguments

df

tibble

rows

selected rows indexes

.after

TRUE will move selected rows to the last row, or you can pass a target row index

.before

TRUE will move selected rows to the first row, or you can pass a target row index

Examples

Run this code
move_row(mini_diamond, 3:5, .after = 8)

Run the code above in your browser using DataLab