sortDataFrame: Sort a data frame by multiple columns or user-specified...

Description Usage Arguments See Also Examples

View source: R/sortDataFrame.R

Description

Sort a data frame by multiple columns or user-specified columns.

Usage

1
sortDataFrame(data, col.names=NULL, decreasing=FALSE)

Arguments

data

A data frame to be sorted.

col.names

User-specified column names to be sorted.

decreasing

Sort in descending or ascending order.

See Also

sort.data.frame

Examples

1
2
3
4
5
6
data('plot.mutation.signature.ex')

sortDataFrame(df)

# Or
sortDataFrame(df, col.names=colnames(df)[1:2,])

lixiangchun/lxctk documentation built on May 21, 2019, 6:44 a.m.