SortColumns: Sort columns of a table

View source: R/tidytools.R

SortColumnsR Documentation

Sort columns of a table

Description

Sorts the columns of the table based on the values in the specified column

Usage

SortColumns(x, decreasing = FALSE, row = NULL, exclude = "NET, SUM, Total")

Arguments

x

Input matrix or dataframe which is being sorted. Values must be numeric. Vectors and 1-d arrays will be ignored.

decreasing

Order to sort values.

row

The row to sort by. If none is specified and the 'Row n' statistic is present in the table, it will use the row with the largest value of 'Row n'. Otherwise it will pick the bottom row.

exclude

A string containing a comma-separated list of columns (either by name or index) which should not be sorted. These columns will remain at the end of the output table


NumbersInternational/flipTables documentation built on Feb. 26, 2024, 6:42 a.m.