sort_dataframe: Sort a dataframe by the contents of its row (sort columnwise)...

View source: R/sort.R

sort_dataframeR Documentation

Sort a dataframe by the contents of its row (sort columnwise) or columns (sort row-wise)

Description

Sort a dataframe by the contents of its row (sort columnwise) or columns (sort row-wise)

Usage

sort_dataframe(df, row.or.col = "row", by = 1)

Arguments

df

A dataframe or matrix

row.or.col

Either "row" or "column" specify what is being sorted

by

The name of the column/row to sort by.

Value

A data frame sorted to specified rows/columns order


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.