reorder_dimensions: Reorder samples and features

reorder_dimensionsR Documentation

Reorder samples and features

Description

Reorder samples or features of an ExpressionSet object based on the rank of their aggregated values. The manner in which values are aggregated is determined by fun.aggregate, which defaults to mean.

Usage

reorder_samples(data, fun.aggregate = NULL, decreasing = TRUE)

## S3 method for class 'ExpressionSet'
reorder_samples(data, fun.aggregate = NULL,
  decreasing = TRUE)

reorder_features(data, fun.aggregate = NULL, decreasing = TRUE)

## S3 method for class 'ExpressionSet'
reorder_features(data, fun.aggregate = NULL,
  decreasing = TRUE)

Arguments

data

ExpressionSet object.

fun.aggregate

function that takes a vector of numbers and returns a single number (defaults to mean).

decreasing

logical. Should the sort be increasing or decreasing?

Value

An ExpressionSet object reordered on one dimension.

Examples

reorder_samples(profiles)
reorder_features(profiles)

aaronwolen/metafiler documentation built on Feb. 16, 2024, 12:41 a.m.