Reorder: Reorder

View source: R/reorder.R

ReorderR Documentation

Reorder

Description

Reorders the rows or columns of a table.

Usage

Reorder(
  x,
  rows = "Descending",
  columns = "Descending",
  FUN = mean,
  fudge = 1e-06
)

Arguments

x

A matrix or data.frame A list of tables to merge

rows

One of "Descending", which orders the rows from top to bottom based on FUN, "Ascending", or "None".

columns

Same as "rows".

FUN

A function to be applied to the rows and/or columns as the basis for the re-odering. Defaults to mean.

fudge

The value of fudge * i, where i is the row or column number is added to each cell. This ensure that ties are broken (provided that the values of the data are not very small, and that they are broken in a consistent and likely orderly way (e.g., if all the numbers in the table are the same, the table is not reordered).


Displayr/flipTables documentation built on Feb. 26, 2024, 12:45 a.m.