centering_rearranger_ {rearrr}R Documentation

Wrapper for running centering rearrange methods

Description

Wrapper for running centering rearrange methods

Usage

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

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)

Value

Sorted data.frame (tibble) / vector.


[Package rearrr version 0.3.5 Index]