arrange_rows: Arrange rows

View source: R/data.frame-handling.R

arrange_rowsR Documentation

Arrange rows

Description

Arranges the rows of a data.frame according to the positions of their maxima or their minima. The earlier a rows maximum/minimum appears the earlier the row will appear in the returned data.frame.

Usage

arrange_rows(df, according.to, verbose, across = NULL)

Arguments

df

A data.frame with at least one numeric variable.

according.to

Character. Either 'maxima or 'minima'.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

across

Deprecated in favor of according.to.

Value

The arranged data.frame.


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.