sortByCol: Sort the rows of a data.frame according to one or more...

View source: R/sortByCol.R

sortByColR Documentation

Sort the rows of a data.frame according to one or more columns.

Description

Sort the rows of a data.frame according to one or more columns.

Usage

sortByCol(x, col, asc = TRUE)

Arguments

x

[data.frame]
Data.frame to sort.

col

[character]
One or more column names to sort x by. In order of preference.

asc

[logical]
Sort ascending (or descending)? One value per entry of col. If a scalar logical is passed, it is replicated. Default is TRUE.

Value

[data.frame].


BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to sortByCol in BBmisc...