move_row: move selected rows to target location

View source: R/dataframe.R

move_rowR 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)

baizer documentation built on Oct. 19, 2023, 9:07 a.m.