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

Description Usage Arguments Examples

View source: R/plot.mutation.signature.R View source: R/plot.mutational.processes.R View source: R/plotMutationalProcesses.R

Description

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

Usage

1
sort.data.frame(df, col.names=NULL)

Arguments

df

A data frame to be sorted.

col.names

User-specified column names to be sorted.

Examples

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

sort.data.frame(df)

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

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