Learn R Programming

rearrr (version 0.3.5)

centering_rearranger_: Wrapper for running centering rearrange methods

Description

Wrapper for running centering rearrange methods

Usage

centering_rearranger_(data, col = NULL, shuffle_sides = FALSE, what = "max")

Value

Sorted data.frame (tibble) / vector.

Arguments

data

data.frame or vector.

col

Column to create sorting factor by. When `NULL` and `data` is a data.frame, the row numbers are used.

shuffle_sides

Whether to shuffle which elements are left and right of the center. (Logical)

what

What to position. "max" or "min". (Character)