sort.data.frame.by.index: Sort data frame by columns allowing for different block of...

Description Usage Arguments Details See Also

View source: R/oncoprinter.R

Description

Sort data frame by columns allowing for different block of rows.

Usage

1
sort.data.frame.by.index(data, idx, col.names=NULL, decreasing=TRUE, rev.colnames=TRUE)

Arguments

data

A data frame to be sorted, e.g. rows are samples and columns are genes.

idx

Block indicator, e.g. a vector of cluster IDs of samples in data.

col.names

Columns specified by names to be sorted in data. If absent, sort data sequentially from the 1st column to the last column.

decreasing

If TRUE sort data in decreasing order.

rev.colnames

If TRUE reverse column names before sorting data.

Details

See the example of oncoprinter for more info.

See Also

oncoprinter


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