move_row {baizer}R Documentation

move selected rows to target location

Description

move selected rows to target location

Usage

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

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

Value

reordered tibble

Examples

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

[Package baizer version 0.8.0 Index]